Skip to content Skip to sidebar Skip to footer

Passing File Path To Php Script

How do I pass a file path from a file input to my php via jquery/ajax? I have an html page with a file input button then ajax passes 'form' elements to a php script, but the path i

Solution 1:

Passing the local file path to the server doesn't help you to upload the file. The file content should be passed via request, the normal ajax cant do that by itself.

You should try file upload plugins like http://www.uploadify.com/ etc.


Post a Comment for "Passing File Path To Php Script"