aspSmartUpload.dll

aspSmartUpload ist eine Komponente zum Uploaden von Files via Classic ASP und IIS.

  1. Installation unter C:\Windows\SysWOW64\
  2. Registrierung  der DLL mit dem Kommando: regsvr32 C:\Windows\SysWOW64\aspSmartUpload.dll
  3. 32-bit Applikation muß für den entsprechenden Applicationpool aktiviert sein.

Beispielcode:


<%
' Variables
' *********
 Dim mySmartUpload
 Dim intCount
 
' Object creation
' ***************
 Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
mySmartUpload.TotalMaxFileSize = 8388608
	mySmartUpload.MaxFileSize = 2097152
	mySmartUpload.AllowedFilesList = "jpg,jpeg,png"
	mySmartUpload.DeniedFilesList = "bat,exe,com,asp"
	mySmartUpload.DenyPhysicalPath = False
' Upload
' ******
 mySmartUpload.Upload

' Save the files with their original names in a virtual path of the web server
' ****************************************************************************
 intCount = mySmartUpload.Save("/aspSmartUpload")
 ' sample with a physical path 
 ' intCount = mySmartUpload.Save("c:\temp\")

' Display the number of files uploaded
' ************************************
 Response.Write(intCount & " file(s) uploaded.")
%>
aspsmartupload_v3_3
aspsmartupload_samples