Save Method

 Object: SoftArtisans.FileUp
 Syntax: Save
 Description: This method saves an uploaded file to the web server's hard disk using the user's original filename.

To use the Save method, you must use the Path property.

If there is more than one file being uploaded in a single page, only the first one is saved.

To save multiple files in a single upload, there is an equivalent method for each file object, i.e., upl.Form("FILE1").Save "filename".

Example:

	<%
		On Error Resume Next
		'---
		'--- Save the file now
		'---
		upl.Path = "C:\UploadDir"
		upl.Save
		if Err <> 0 Then
			 Response.Write("An error occurred when saving the file on the server.")
	... %>

 

Previous Page Next Page