Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 492
Product
FileUp
Title
Why can't I use Request.Form in conjunction with an upload in Classic ASP?
Solution

Uploading is performed via an Internet standard called RFC1867. This standard uses a different encoding scheme than typical HTML forms. Typically an HTML form may be defined as:

<FORM METHOD="POST" ACTION="PROCESS.ASP">

To upload files, an additional attribute must be specified:

<FORM METHOD="POST" ACTION="PROCESS.ASP" ENCTYPE="MULTIPART/FORM-DATA">

This attribute changes the encoding type (ENCTYPE) of the form for efficiency of transferring large amounts of data. ASP.NET is able to retrieve form elements from multipart/form-data encoded posts. However classic ASP's Request.Form collection does not understand this encoding type. It is unable to separate the file information from the other form of data.

FileUp includes all of the Request.Form's functionality and can interpret forms using this alternate encoding scheme. This must be used in order to retrieve form data in classic ASP.

If you are using FileUp in an ASP.NET application, it is your choice whether to use FileUp's Form or FormEx collections or ASP.NET's built-in Form collection.

See the FileUp documentation:

Created : 12/1/2002 12:00:00 AM (last modified : 2/8/2007 5:04:03 PM)
Rate this article!
Comments