How do I upload a user's file to a file server without using FileUpload?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vvinc
    New Member
    • Oct 2010
    • 4

    How do I upload a user's file to a file server without using FileUpload?

    I need to upload a file (xml, pdf, etc) from the user's PC, but I need to write it directly to a file server. I cannot use FileUpload because there is no way to direct its initial upload to anything but the web server. So, how do I use the HTML INPUT to upload the file from the user's PC directly to a file server located at a different URL than the web server the web page is being hosted on?

    Thanks for your help. I am not as good with HTML as I should be.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I'm sorry to be the bearer of bad news but the ASP.NET FileUpload control is rendered as an HTML <input type='file' ../> control.

    If you need to retrieve a file from the user's computer using ASP.NET, you need to use the FileUpload control (or the HTML input control....whic h is the same thing at it's core).

    What problems are you having with regards to writing the file to the file server?

    -Frinny

    Comment

    • vvinc
      New Member
      • Oct 2010
      • 4

      #3
      I found the answer to the problem today. By adding the action property to the form, I can use it to direct the file upload to the URL of a file server instead of the default which is the web server.

      Comment

      Working...