|CyberSite.net Knowledge Base|
|How do I add impersonation for ASPUpload?
We provide an ASP component installed on all the web servers that allows uploading files using classic asp. This component is called Persits AspUpload. If you want to upload files without giving public write, you can impersonate with your ftp account. The following below is an example that will display 3 fields to browse and select files to upload using your ftp account. This is more secure as public now does not have write access to your specific folder where your files will be uploaded at.
Create a file called uploads.asp and save the following text below in it.
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp">
<INPUT TYPE=FILE SIZE=60 NAME="FILE2"><BR>
Please note that domain is the data center your website is located at. It will either be SAT, DFW, or ORD.
Set Upload = Server.CreateObject("Persits.Upload.1")
Count = Upload.Save("\\location\where\I\want\my\files\uploaded\at")
|Copyright 2011 CyberSite.net, a subsidiary of Group One Communications, Inc., All rights reserved worldwide.