2. Execute in ASP
Now it has been concluded that RFC1867 is the best way to upload files in WEB applications. So how to run it? What methods does Microsoft provide? What other methods can be used?
Microsoft Posting Acceptor
ASP does not support multipart/form-data encoding, but Microsoft provides a free Posting Acceptor (http://www.microsoft.com/iis/support/iishelp/iis/htm/core/pareadme.htm), which is an ISAPI application, after the upload ends, generate a new post to ASP page. (See Scott Stanfield's article issue of MIND (July )).
SA-FileUp of Software Artisans
SA-FileUp (http://www.softartisans.com/softartisans/saf.html) is one of the earliest Active Server Components. The first version was used in May, and has been used by thousands of websites around the world, including Microsoft. Com. Early Beta versions used the combination of ISAPI filters and Active Server components and ASP. Microsoft then launched ASP 1.0b (ASP. DLL 1.15.14.0), providing a new method: Request. BinaryRead (binary read Request ). The binary read method allows the original unprocessed data in the browser to be used by the Active Server component. In this way, the SA-FileUp does not need the ISAPI filter, but does exist as an ASP component.
SA-FileUp uses binary read requests instead of form objects. This makes sense: how can you read the original data stream from the browser and parse it as table information? To take care of ASP developers, SA-FileUp provides all the table request functions in its own table set. In this way, ASP programmers accustomed to using table requests are more familiar with SA-FileUp.
Comparison between Posting Acceptor and SA-FileUp
Now we can make an objective comparison between PA and SA-FileUp as much as possible:
■ Integration with ASP: SA-FileUp is completely scriptable in ASP. It can be well combined with ASP applications, rather than being an independent isapi dll.
■ Standard support: the unique WebPost API should be used for uploading PA from IE browser. Therefore, RFC1867 is not as good as PA, and different formats should be used for Netscape and IE users.
■ Anonymous connection: Since PA uses an isapi dll, it must provide additional security protection outside ASP applications. Therefore, by default, PA does not allow all anonymous connections. PA 1.1 allows anonymous uploads, but there is still a certain risk due to the programming control of upload. Because SA-FileUp is already integrated with ASP, applications can determine proper security, including anonymity.
■ Upload control: PA does not allow any control when the upload is being sent. However, with SA-FileUp, you can limit the upload size or decide to cancel the upload in real time. The best thing is that you can dynamically change the upload location.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service