PHP Forums Archive

Upload file without page reload

Tags: upload, ajax, jquery

xcacacasc posted on 2010-01-22 18:08:20 #

Hi

I am new at php and for the last three days I have searched a script that will upload a image to a remote server from a localhost windows wamp server. I found several AJAX scripts but they don't work, this script demo http://www.finalwebsites.com/demos/php_ajax_upload_example.php work like I want it but it doesn't work on my localhost. Are there better ways of uploading without page reload or I am not using the script the right way?

Comments / discussions

Olaf posted on 2010-01-22 19:25:45 #

Hi,

maybe there is something with your localhost?
jQuery or other JS code is not related to the server, but maybe it's something with your PHP?

Try the easy upload class without the ajax part, if this works you can use the jquery example.

Check also this upload tutorial for a better understanding.