How to use ASPUpload?

 AspUpload is a COM+ component which enables an ASP application to capture, save and process files uploaded to the web server with a browser. The files are selected for uploading via an HTML POST form using the <INPUT TYPE=FILE> tag.
With AspUpload, you can add file upload functionality to your Web application in as little as 2 lines of ASP script. In addition to uploading, AspUpload offers a wide range of file management functions, including secure downloading, saving files in the database, permission and attribute management, image size extraction, file encryption, etc.
 
Sample Codes:
1. <HTML>
2. <BODY>
3. <%
4. Set Upload = Server.CreateObject("Persits.Upload")
5. Count = Upload.Save("c:upload")
6. Response.Write Count & " file(s) uploaded to c:upload"
7. %>
8. </BODY>
9. </HTML>
 
Explanation According to Line
1. Open HTML tag
2. Open BODY tag
3. Open ASP tag
4. Create instance of Upload control
5. Save upload
6. Produce message
7. Close ASP tag
8. Close BODY tag
9. Close HTML tag

Article ID: 4, Created On: 4/19/2013, Modified: 4/19/2013

Feedback (0)