koanzen1940 Posted April 29, 2009 Share Posted April 29, 2009 Hi everybody, I have a server (lets call it S_1) running IIS and PHP over Windows 2008 and I'm trying to make an ftp from that server to a second server (lets call it S_2) through the users connected to de S_1 via http (website). The clients go to S_1 through a browser (where is the web application) and they charge a picture file that should be transfer from their computers to de S_2. The method used to send the file is POST, but the problem is that when I retrieve the PATH information of the file (using a client connection), It shows the file name but not the path. However, when I make the same test but openning the website from the same S_1, then it sends the file and the path complete. The input that I use to locate the file is: <input name="archivo" type="file" id="1"/> The code I'm using to retrieve the file information is: $_POST["archivo"] ## Using PHP I really appreciate all the help that you can give Link to comment https://forums.phpfreaks.com/topic/156149-php-problem-with-post-files/ Share on other sites More sharing options...
wildteen88 Posted April 29, 2009 Share Posted April 29, 2009 Use $_FILES not $_POST when retrieving uploaded files from a file form field. Link to comment https://forums.phpfreaks.com/topic/156149-php-problem-with-post-files/#findComment-821990 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.