Object: | SoftArtisans.FileUp | ||||||||||||
Syntax: | SaveInVirtual([in] VirtualLocation As String) | ||||||||||||
Description: |
This method saves an uploaded file to the web server's hard disk in a location specified by the virtual directory or filename in a virtual directory. SaveInVirtual uses the ASP or ASP.NET The Web Administrator can disable all other save methods except SaveInVirtual. This
prevents the Web Developer from writing to non-virtual directory locations on the
server. See Disabling
When using the SaveInVirtual method of the FileUp object, 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., fileUpload.Form("File1").SaveInVirtual "filename". Please see SAFile.SaveInVirtual.
|
||||||||||||
Examples: | |||||||||||||
Specify a virtual directory, but keep the user's original filename:
Specify a virtual directory that includes the file name:
|