Persits AspUpload 3.1 is a powerful and easy-to-use component that allows you to upload files from a browser to a web server using ASP. It supports multiple file uploads, progress bars, file size limits, file type restrictions, Unicode filenames, image resizing, and more. In this article, we will show you how to use Persits AspUpload 3.1 to upload files with ASP.
Installing Persits AspUpload 3.1
Before you can use Persits AspUpload 3.1, you need to install it on your web server. You can download a free 30-day evaluation copy of Persits AspUpload 3.1 from http://www.aspupload.com/download.html. There are two versions available: a 32-bit version and a 64-bit version. You need to choose the version that matches your web server's architecture. After downloading the installer, run it as Administrator to avoid permission-related errors. The installer will register the component on your web server and create a virtual directory called /AspUpload that contains sample scripts and documentation.
Using Persits AspUpload 3.1
To use Persits AspUpload 3.1, you need to create two ASP pages: one for displaying a file upload form and one for processing the uploaded files. The file upload form can be a simple HTML form with an element for each file you want to upload. You also need to set the enctype attribute of the element to \"multipart/form-data\" and the method attribute to \"post\". For example:
The page that processes the uploaded files needs to create an instance of the AspUpload object and call its Save method to save the uploaded files to a folder on the web server. You can also use other methods and properties of the AspUpload object to access information about the uploaded files, such as their names, sizes, types, etc. For example:
<%@ Language=VBScript %>
' Create an instance of the AspUpload object
Set Upload = Server.CreateObject(\"Persits.Upload\")
' Save the uploaded files to a folder called /uploads