Library tutorials & articles

Using the SAFileup component

Using FileUp

Features of Fileup

FileUp allows users with a Web browser to transmit files from their local hard disk to a server running Microsoft Internet Information Server (IIS), or to a separate file server which is networked to the Web server. Files can be of any format, such as Word documents, images or plain text.

How it works

The below code is self explanatory. Using a little javascript asp and html you can have this working as per your need. If you look at the code, the FORM tag need the ENCTYPE="MULTIPART/FORM-DATA", which is a very important step. The media-type multipart/form-data follows the rules of all multipart  MIME data streams as It is intended for use in  returning the data that comes about from filling out a form. In a  form each field has a name. Within a given form, the names are unique. Multipart/form-data contains a series of parts. Each part is expected to contain a content-disposition header where the value is "form-data" and a name attribute specifies the field name within the form,

e.g., 'content-disposition: form-data; name="xxxxx"', where xxxxx is
the field name corresponding to that field.

<form ENCTYPE="MULTIPART/FORM-DATA" ACTION="index.asp?uploader=true" METHOD="POST" id="form1" name="form1" onsubmit="javascript:return checkForm();">

...
.......
..........
</form>

Comments

  1. 13 Feb 2003 at 10:36

    Thanks for the help!!!
    I'm going to take a look to the sites you recommended.



    Regards,


    Pedro Röseler

  2. 11 Feb 2003 at 07:45

    Hello


    Javascript is a client side language so u cannot use javascript but server side java could be used but i don't know how


    there are heaps of other upload components out there and i there are also some pure asp upload pages out there aswell at planet-source-code.com and at http://www.4guysfromrolla.com/

  3. 06 Feb 2003 at 10:32

    Can anyone help me finding code to replace the SA fileup component with javascrip code so that i don't have to use that component?
    The server where i have a site that i build doesn't have that componet so i'm in big trouble!!!  ((


    Thanks!


    pedro


    pedro_roseler@mail.pt

  4. 01 Jan 1999 at 00:00

    This thread is for discussions of Using the SAFileup component.

Leave a comment

Sign in or Join us (it's free).

AddThis

Related discussion

Related podcasts

  • ASP.NET Caching and Performance

    Steve Smith, owner of ASP Alliance and Lake Quincy Media joins us today to teach us about some hidden gems in ASP.NET caching and performance. Steve’s expertise in this area comes from first-hand experience as Lake Quincy’s ad system serves over 60 requests per second and handles over 150 million...

Related jobs