How to handle several types of source form encoding using Huge ASP upload and ASPForm object.
Q: I am writing in reference to your Huge-ASP upload software product. I have seen in several places in the help file that this software can handle multipart/form-data encoded forms AND application/x-www-form-urlencoded forms. I don't see any example in the help files of an application/x-www-form-urlencoded form being processed. Please advise as to whether this is possible, and please provide an example. Thanks for your time and attention.
Huge-ASP upload can accept both application/x-www-form-urlencoded and multipart/form-data forms. You do not need to do some special settings to accept these two kinds of form. ScriptUtils.ASPForm component contains next simple code in ScriptUtils.ASPForm.Read method (in C++, of course):
Dim ContentType ContentType = LCase(Request.ServerVariables("HTTP_CONTENT_TYPE")) If Left(ContentType,19) = "multipart/form-data" Then 'Multipart source form ProcessMultipartData ElseIf ContentType = "application/x-www-form-urlencoded" Then 'URLEncoded source form ProcessURLEncodedData Else 'Unknown content-type m_FormType = ftNone End IfThere is a special property ScriptUtils.FormParser.FormType which gives you info what type of form is currently processed. You can use both
<Form Action=hugeupload.asp method="POST"> <Input Name=Description> <Input Type=Submit> </Form>or
<Form Action=hugeupload.asp method="POST" ENCTYPE="multipart/form-data"> <Input Name=Description> <Input Type=Submit> </Form>
'Create form object Dim Form Set Form = Server.CreateObject("ScriptUtils.ASPForm") Dim Description Description = Form("Description")
Frequently asked questions about ScriptUtilities, Pure-ASP and Huge-ASP upload functionality.
Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 4GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance . The software has also a free version of asp upload with progress, called Pure asp upload , written in plain VBS, without components (so you do not need to install anything on server). This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files , works with binary data , you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.
© 1996 - 2015 Antonin Foller, Motobit Software | About, Contacts | (Find us on Google+)