I would like to know that is there any possibility that whatever (JPG, JPEG, PDF, Zip etc..) file will be uploaded by the user in webpage form control that will directly upload/Put on the FTP server without storing first temporary in website server and then transfer in FTP server ?
Actually i have a business case that user can able to upload more then 200 MB of file so here i would like to directly transfer it in Remote FTP server without storing it in website server.
further i have investigated that html form tag allow the FTP protocol in Action attribute and below are the code snipped which i have tried.
<form action="ftp://username:password@domainname/upload.php" enctype="multipart/form-data" method="post">
<table style="border-collapse: collapse;" border="1" width="500px">
<tbody><tr>
<td> Upload File :</td>
<td> <input name="uploadedfile" type="file"> </td>
</tr>
<tr>
<td colspan="2">
<input name="Save File" value="Save File on Server" type="submit">
</td>
</tr>
</tbody></table>
</form>
But when i am trying to upload the image and submit it then it redirect me into the ftp://username:password@domainname/upload.php url in browser and that will display the PHP code which i have scripted inside the upload.php file.
Actually I already aware that how to transfer the file in Remote FTP server once the form submit and transfer the file from server temporary location ($_FILES['uploadedfile']['tmp_name']) to FTP server but by doing this way it will take double time as first the file getting uploaded in website server and then further transfer in Remote FTP server.
You can also suggest me the alternative way to achieve my business need.
Thanks in advance.