I am trying to use the script below to upload files, in conjunction with php. I am trying to pass urls into the script via post which will set a different tmp_dir and upload_dir based the the logged in user.
My problems is that in the first part of the script, I try to assign the parameters from post. The parameters get assigned properly, but then the file does not upload. The problem is that it cannot get the tmp_filename. I have noticed that if I do not assign any variables from params prior to that call, that it will indeed work. Does anyone have any suggestions?
The script is located here: http://pastebin.modevia.com/66