How do I upload a user's file to a file server in HTML

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

    #1

    How do I upload a user's file to a file server in HTML

    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.
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    Use input type="file" for uploading a file in the server.

    Thanks and Regards
    Ramanan Kalirajan

    Comment

    • vvinc
      New Member
      • Oct 2010
      • 4

      #3
      Thank you for your reply. What I am trying to accomplish is not having the initial file upload go to the web hosting server, but directly to a file server. Setting type="file" will not accomplish this. Is there a way to do this?

      Comment

      • Death Slaught
        Top Contributor
        • Aug 2007
        • 1137

        #4
        Originally posted by vvinc
        Thank you for your reply. What I am trying to accomplish is not having the initial file upload go to the web hosting server, but directly to a file server. Setting type="file" will not accomplish this. Is there a way to do this?
        No, not with HTML alone. You will have to use a server side language (PHP, ASP). Here is a site that covers things fairly well. I just briefly scanned it, but the page has a few references and should tell you what you need.

        Thanks, Death

        Comment

        Working...