DownloadFile
The DownloadFile method.
Syntax
.DownloadFile(SourceFile[, ContentType, NewFileName])
Parameter
SourceFile is the source file. The path can be a virtual or a physical path. If there is only a file name, then this one have to be placed in the root directory of the web server.
ContentType.
NewFileName indicates a new name in the "Save As" dialog box.
Example
<%
Dim MyUpLoad
Set MyUpload = Server.CreateObject("AspSmartUpLoad.SmartUpLoad")
MyUpload.DownloadFile "c:\temp\myFile.txt", "application/x-zip-compressed", "NewFileName.txt"
%>
--------------------------------------------------------------------------------
DownloadField
The DownloadField method.
Syntax
.DownloadField(SourceField[, ContentType, NewFileName])
Parameter
SourceField is the record of a DataBase.
ContentType.
NewFileName indicates a new name in the "Save As" dialog box.
Example
<%
Dim MyUpLoad
Set MyUpload = Server.CreateObject("AspSmartUpLoad.SmartUpLoad")
MyUpload.DownLoadFied "myRecordSet("FILE")", "application/x-zip-compressed", "NewFileName.txt"
%>
Partager