This ASP component saves uploaded files on the server when they have been attached to a form using the <input type="file"> tag, as described in RFC 1867.
There are many web applications where it is useful to collect one or more files from a web site visitor. It is always an advantage to make this process as simple as possible. Most browsers support file uploads, but we still need a server side script or cgi to do something with the file.
csASPUpload allows files to be collected and saved on the server. A useful extra feature is the ability to export the file data as a binary stream allowing it to be saved straight into a database. There is a demonstration application showing this that can be downloaded.
This data streaming feature can also export a file straight into the csImageFile component for server side image manipulation, creation of thumbnails etc.
The full features of csASPUpload can be seen by reading the online instruction manual. These instructions are also included in the zip file with the trial component in both PDF and HTML format.
We also have a simple two page demo that shows how Javascript can be used for client side verification when the uploaded file is an image. Click Here to read more or to download it.
For a live demo showing image uploading Click Here.
- Available examples of using csASPUpload:
- Upload to a database - the uploaded file is stored as raw data in a database.
- Preview image - Javascript verification and preview for uploading an image.
- Upload files to disk - the uploaded files are stored to disk and can be viewed and deleted.
- Examples of using csASPUpload with csImageFile:
- Upload to a database and resize - an image is resized and stored as raw data in a database.
- Upload to disk and resize - an image is resized and stored on disk.
HTTP Functions
With the release of csASPUpload version 2.0 we have introduced an additional class containing HTTP functions. These allow a script using the component to send a file to a remote server as an HTTP post, and also to receive a file from a remote server as a download. A username and password can be included if the remote server uses authentication. Form variables can be added for the upload as well as the download. Files can be uploaded from a binary variable or downloaded into a binary variable.
Other File Upload Products
Visit our upload products page for a summary of the client and server side components that we have for transferring files between client and server, or between two servers.