<html> <head> <title>ThaiCreate.Com ASP & aspSmartUpload</title> </head> <body> <form action="AspSmartUpload2.asp" method="post" enctype="multipart/form-data" name="frmMain"> Upload 1 <input name="file1" type="file"><br> Upload 2 <input name="file2" type="file"> <input type="submit" name="Submit" value="Submit"> </form> </body> </html>
<% Option Explicit %> <html> <head> <title>ThaiCreate.Com ASP & aspSmartUpload</title> </head> <body> <% Dim mySmartUpload Dim intCount '*** Create Object ***' Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload") '*** Upload Files ***' mySmartUpload.Upload '*** Save Path ***' intCount = mySmartUpload.Save(Server.MapPath("MyFiles/")) Response.Write(intCount & " file(s) uploaded.") Set mySmartUpload = Nothing %> </body> </html>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท