Persits AspUpload
:
Full reference for Persits AspUpload can be downloaded here.
Below is the VBscript code required to save any files uploaded from a HTML form into a directory named "upload" in the root of your hosting account.
<%
Set uploadObject = Server.CreateObject("Persits.Upload.1")
uploadObject.Save(Server.MapPath("/uploads"))
Set uploadObject = Nothing
%>
You will need to submit to your upload script using a multipart form with a HMTL form element of type file.
Please note that when using multipart forms you can NOT access the ASP Request.Form collection, attempting to do so will cause an error.
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp">
<INPUT TYPE="file" NAME="FILE1">
<INPUT TYPE="submit" VALUE="Upload Now!">
</FORM>
Click here to return to the previous page.
|