4、AspSmartUpload程式範例

<HTML>
<BODY BGCOLOR="white">

<H1>aspSmartUpload : Sample 1</H1>
<HR>

<%
'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("c:\temp\")

'Display the number of files uploaded
'************************************
Response.Write(intCount & " file(s) uploaded.")
%>
</BODY>
</HTML>

 
 
捕夢網數位科技有限公司 版權所有 Copyright© 2003-2014 Pumo All Rights Reserved
24小時客服專線:02-8226-9123 / 傳真電話:02-8226-9122  客服信箱:service@pumo.com.tw