Kategorier |
|
Kodexempel för FileUpload (Chili!Upload)
The following script uploads a file:
<FORM ACTION="fileupld.asp" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE="FILE" NAME="FILE">
<INPUT TYPE="SUBMIT" VALUE="Send">
</FORM>
The following fileupld.asp script processes the upload:
<%
Response.Expires = 0
Set fbase = Server.CreateObject("Chili.Upload.1")
fbase.SizeLimit = 10000
fbase.SaveToFile("/opt/datafiles/test.dat")
%>
Done writing <%=fbase.FileSize%> bytes from user file <%=fbase.SourceFileName%>
(of type <%=fbase.SourceFileExtension%>)
Mer information:
http://www.chilisoft.com/caspdoc/362docs/html/chili_upload_file_upload_component_.htm |
|