Forum Moderators: coopster

Message Too Old, No Replies

Odd php AJAX problem

         

optik

5:18 pm on May 1, 2009 (gmt 0)

10+ Year Member



I am using AJAX to upload a file without changing the file upload screen,
strangely it will only work when the document path for the move_uploaded_file function is hard coded, as soon as I pass the ajax page variables (using GET) for the document path the move_uploaded_file function stops working. I can test the document path I have dynamically created and it it echo's perfectly well, but for some reason the move_uploaded_file file can't see the effect.

There must be some conflict going on but I don't know what or how to get around the problem.

Any suggestions would be welcome.

optik

5:39 pm on May 1, 2009 (gmt 0)

10+ Year Member



Turns out I had to use the rename function

Edit: actually no this didn't work