C
cam
Hi:
How can I rename the file being uploaded using ASPSmartUpload?
I can set the other parameters ok, just looking for the syntax to rename the file.
E.G. User uploading GIF file. I'd like to rename the file 'test.gif'
********
<%
Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.AllowedFilesList = "gif"
mySmartUpload.MaxFileSize = 65000
mySmartUpload.Upload
'**MISSING CODE TO RENAME FILE TO test.gif**
mySmartUpload.Save("/data/")
Response.Write("File uploaded.")
%>
How can I rename the file being uploaded using ASPSmartUpload?
I can set the other parameters ok, just looking for the syntax to rename the file.
E.G. User uploading GIF file. I'd like to rename the file 'test.gif'
********
<%
Dim mySmartUpload
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.AllowedFilesList = "gif"
mySmartUpload.MaxFileSize = 65000
mySmartUpload.Upload
'**MISSING CODE TO RENAME FILE TO test.gif**
mySmartUpload.Save("/data/")
Response.Write("File uploaded.")
%>