How can you use jquery to simply post to a php script the value of a file? I’m assuming the Files array and post array are different, so would I have to use a different method?
ex. would posting
var file = $(‘fileInput’).val();
work?
What data am I supposed to send and how should I send it? Thanks
How can you use jquery to simply post to a php script the value
Share
Use this to post files using jquery (html5 browsers supporting FileAPI only, others like IE don’t support it):