CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: File upload

  1. #1
    Join Date
    Sep 1999
    Posts
    1

    File upload

    Hi all,
    I am designing a site and want to provide a link on one of the pages through
    which the user can select a file from his pc and upload it on the server.
    How can i do that ? i think servlets can come to my help but how ? and is
    there any other way than servlets ? My site is running on AS/400 machine and
    i have to do a lot to enable servlets on it.
    Can you please do a favour to send me the answer through e-mail. For me
    access to web is uncertain - my email-id is [email protected]
    Thanx in anticipation.
    -Harsh


  2. #2
    Join Date
    Sep 1999
    Location
    Sofia, Bulgaria
    Posts
    48

    Re: File upload

    You should use the tag input
    <input type=file name=myfile>
    Da file will be send automaticly by the browser
    and it depends on what kind of webserver you are using
    It is not necessery to use servlets, nut any kind of CGI programs
    that can run on your webserver

    Leon


  3. #3
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: File upload

    Also u will need to give 'ENCTYPE' to 'form' tag. ie ENCTYPE=multipart/form-data

    otherwise only the name of the file will be sent, and not the contents.

    - UnicMan
    http://members.tripod.com/unicman

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

Featured