|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm working on a ftp upload page and I was wondering if it is possible to upload a file directly with ftp. So without the form first uploading the file to a temp directory on the webserver... if I leave out "multipart/form-data" in my form, no matter what I try, I can't access or open my local file (windows machine).
Does anyone have a solution? |
|
#2
|
||||
|
||||
|
No I don't think so, your using HTTP Protocol whenever you use your browser, atleast with PHP the method is temp -> file. Not sure about other languages.
__________________
--------------------- -- SilkySmooth -- --------------------- Proxy | Little Directory |
|
#3
|
|||
|
|||
|
The only way you could do an upload directly with FTP is if the client that's accessing your web page is running an FTP server. Then you could include code to log in to the client computer's FTP server and get the file via an FTP get.
We have a couple of web based apps like this at work where we have over 500 remote locations that have to upload daily sales info to the corporate office for processing into our corporate database. The remote sites login and if the login is successful, the ftp server login information is retrieved from a database and used to login to the remote ftp server and retrieve selected files. Without this type of setup, I'm pretty sure you're stuck with an HTTP upload of the files because you can't initiate an FTP connection from the client to your server via server-side scripts. |
|
#4
|
|||
|
|||
|
And is there another way of setting up a client - server ftp connection? With javascript?
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP upload without HTTP? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|