| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Posting without Input=file element |
| michael From: edmonton, AB Canada Posts: 2 Member Since: 05/27/02 |
posted May 27, 2002 1:53 PM is it possible to upload files using asp with your component by passing a variable in for the file to uploaded? if so, could you provide an example of how to accomplish this? Thanks in advance. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 28, 2002 12:48 PM Hi, You can use the control in an ASP script to store a file on an Ftp server, provided the file (or the data for the file) has been uploaded to the machine hosting the ASP script first. Since ASP is server-side scripting, the control remains on the server, and this machine therefore acts as the Ftp client. The Ftp.Store's Data parameter would be set to the location of the file on the ASP host (or the data) to be stored. -ken |
| michael From: edmonton, AB Canada Posts: 2 Member Since: 05/27/02 |
posted May 28, 2002 1:35 PM thanks for the explanation. do you know of a way to get the file from the client, to the server without using the <input type=file> element, before ftping the file with your control? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 28, 2002 2:57 PM Hi, It would depend on the server. If you are looking at Http, you can upload files either using Post or Put (if the server allows it). When posting, you might be able to send the filename and its data as a text type name-value pair, if you did not want to use the file input type. -ken |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|