var file = document.getElementById("myfilefield").files[0]; //JUST filename.
var file = document.getElementById("myfilefield").value; // FAKEPATH in path.
I push this into an array with a some various text like user, reference etc.... It is an array as I may do up to 10x at once in the entire process of uploading, interpreting and storing data from the fileASKER
ASKER
ASKER
ASKER
ASKER
I am looking for one ajax call if possible.Me too
a) upload of filea) upload fileS and informationS
b) send information regarding files from form fields in a HTML form.. user input.b) done at a)
c) perform the process per file and iterate throughc) done at a)
d) report back completed) done at d)
b, c, d all working fine.a all working fine
just got a to work as a separate ajax call on multiple files. So without further thought, help, research this is looking like an ajax call to upload files and upon success fire another ajax call to send rest of my data and then the c) step is done there.One call, multiple files and data
Trying to combine the two... but I do not quite follow your suggestion.use a PHP script receiving all the files and data which do the dispatch, use server side to do that work insteadyour web browser
ASKER
ASKER
ASKER
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
ASKER
Thanks
R