There was a problem loading the comments.

Uploading file with aspSmartUpload object

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
You may refer the sample code as below. Please make sure you had set the write permission for your upload folder.

<%
' Variables
' *********
Dim mySmartUpload
Dim intCount
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Upload
' ******
mySmartUpload.Upload
' Save the files with their original names in a virtual path of the web server
' ****************************************************************************
intCount = mySmartUpload.Save("/aspSmartUpload/Upload")
' sample with a physical path
' intCount = mySmartUpload.Save("e:\wwwusr\vhosts\domain.com\httpdocs\upload")
' Display the number of files uploaded
' ************************************
Response.Write(intCount & " file(s) uploaded.")
%>

Share via

Related Articles

Copyright © 2022 TheGigabit. All right reserved. Reg.No: 200701034297 (792326-P)