Save File From Client Machine to Web Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aeMadhavan
    New Member
    • Feb 2010
    • 1

    Save File From Client Machine to Web Server

    Hi,

    Without using fileupload control, what is the way to store a file from client machine to web server.

    FYI, a text box has the path the client machine file.

    Thanks
    Madhavan.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Well, ASP.NET web applications (or websites) interact with the user through a web browser.

    Web browsers display HTML...and this HTML is generated by ASP.NET based on your C# or VB.NET server code.

    The FileUpload control is rendered as an HTML <input type="file"> and the browser implementation accesses the user's operating system to allow the user to browse-to and select a file that they want to upload.


    So, how are you supposed to save a file on the client's computer (which may be Linux, or a Mac OS, or Windows....or anything) without using the FileUpload control???

    You can't do this.

    Unless you're developing a Silverlight application...a nd even then you're still going to have to use an Open File Dialogue ....which does much the same thing.

    -Frinny

    Comment

    Working...