Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Upload

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
Hello,

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:
 
Chances are nobody here is going to debug your entire script. Narrow down the scope of the problem, post the relevant code here, and maybe someone will give it a shot.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top