Results 1 to 3 of 3

Thread: ftpwebrequest to upload file

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2010
    Posts
    50

    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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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:
    Gets text that describes a status code sent from the FTP server.
    and this:
    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:
    Gets the most recent status code sent from the FTP server.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2010
    Posts
    50

    [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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width