Jump to content

No refresh Image Uploading


MrAdam

Recommended Posts

hi. im trying to create a form uploader script using AJAX technology. I want it all to happen on the same page without refreshing any pages or iframes. Using AJAX to call the php script, i want to send in the filename the location in a variable. for example:uploadfile.php?loc=C:\folder\file.jpgbut in the script... how do i use that in the files array? ( $_FILES[] )-Thanks

Link to comment
Share on other sites

For how much I know, it is impossible to upload via the url, it must be via an HTML form, to let the browser use the internal process that actually uploads the files, and send the data to the action file :)But I don't know about AJAX. I guess it counts for AJAX too, but can't be sure. What if you just create a form and open the action of the form in a new window? The page would not be refreshed, at least not when using html/javascript, I don't know AJAX or how it works :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...