ftpwebrequest to upload file
Hi all,
I have a vb.net window application to upload text file by using ftpwebrequest to a server.
my question is: should I add a server response to the client application to make sure the server actually got the file.
what I got now is only client side (to upload file to a folder in the server PC), but I havnt got a server side application to send response.
If yes, how to create the server side application
Can anyone have any idea, thank you.
Re: ftpwebrequest to upload file
If you're using an FtpWebRequest then you must be uploading to an FTP server. You're not creating the server so you aren't writing any server-side code.
When you read the documentation for the FtpWebRequest class, you'd have seen the code example that uses the StatusDescription property of the FtpWebResponse. When you read the documentation for that property you'd have seen this:
Quote:
Gets text that describes a status code sent from the FTP server.
and this:
Quote:
The text returned by the StatusDescription property includes the 3-digit StatusCode property value.
When you read the documentation for the StatusCode property, you'd have seen this:
Quote:
Gets the most recent status code sent from the FTP server.
[RESOVLED]ftpwebrequest to upload file
Thank you so much for yr help, that save me;)
I though the ftp server is not given out any response back to the application.