Jump to content


Photo

Path of Source File


  • Please log in to reply
3 replies to this topic

#1 mb81

mb81
  • Members
  • PipPipPip
  • Advanced Member
  • 120 posts

Posted 20 June 2006 - 06:09 PM

I am trying to do an FTP upload using the FTP library and I can't seem to find a variable that actually stores the source file's path for uploading to the FTP, because it is sent under the $_FILES variable and doesn't send anything via REQUEST. If I remove the enctype setting on the form, then it will send just the filename, but not the whole path.

What am I doing wrong?

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 20 June 2006 - 09:49 PM

I guess you'd use the $_FILES['name']['tmp_name'] variable as the source file parameter in ftp_put()

#3 mb81

mb81
  • Members
  • PipPipPip
  • Advanced Member
  • 120 posts

Posted 20 June 2006 - 11:50 PM

[!--quoteo(post=386157:date=Jun 20 2006, 05:49 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Jun 20 2006, 05:49 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I guess you'd use the $_FILES['name']['tmp_name'] variable as the source file parameter in ftp_put()
[/quote]


I can't do that, it doesn't upload, so the $_FILES variable doesn't exist.

#4 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 20 June 2006 - 11:51 PM

[!--quoteo(post=386194:date=Jun 20 2006, 06:50 PM:name=mb81)--][div class=\'quotetop\']QUOTE(mb81 @ Jun 20 2006, 06:50 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I can't do that, it doesn't upload, so the $_FILES variable doesn't exist.
[/quote]


if the files dont show somethings wrong with your code! please post the code
"Syntax error" .. WHERE THE **** IS IT?!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users