mb81 Posted June 20, 2006 Share Posted June 20, 2006 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 More sharing options...
zq29 Posted June 20, 2006 Share Posted June 20, 2006 I guess you'd use the $_FILES['name']['tmp_name'] variable as the source file parameter in ftp_put() Link to comment https://forums.phpfreaks.com/topic/12477-path-of-source-file/#findComment-47803 Share on other sites More sharing options...
mb81 Posted June 20, 2006 Author Share Posted June 20, 2006 [!--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 More sharing options...
legohead6 Posted June 20, 2006 Share Posted June 20, 2006 [!--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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.