Jump to content

Recommended Posts

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?
Link to comment
https://forums.phpfreaks.com/topic/12477-path-of-source-file/
Share on other sites

[!--quoteo(post=386157:date=Jun 20 2006, 05:49 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Jun 20 2006, 05:49 PM) [snapback]386157[/snapback][/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.
Link to comment
https://forums.phpfreaks.com/topic/12477-path-of-source-file/#findComment-47839
Share on other sites

[!--quoteo(post=386194:date=Jun 20 2006, 06:50 PM:name=mb81)--][div class=\'quotetop\']QUOTE(mb81 @ Jun 20 2006, 06:50 PM) [snapback]386194[/snapback][/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
Link to comment
https://forums.phpfreaks.com/topic/12477-path-of-source-file/#findComment-47840
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.