With economy hosting - free hosting - on godaddy with Windows NOT Linux.
Go in to your account and go to ASP Runtime and create new Folder called UPLOAD and select the permissions READ and WRITE.
To Check this is done correctly on your FTP program there will appear a folder called UPLOAD.
Step 2.
Create a HTML file called "whatever you want".html
COPY AND PASTE THIS CODE IN BETWEEN THE <BODY> (here) </BODY>:
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="upload.asp">
<INPUT TYPE= FILE SIZE= 60 NAME="FILE1"> <BR>
<INPUT TYPE="SUBMIT" VALUE="Upload!">
</FORM>
THEN SAVE!!!
Step 3.
Create a new file and paste this code in a blank document.
<% Set Upload = Server.CreateObject ("Persits.Upload.1")
Count = Upload.SaveVirtual ("/upload/") %>
<% = Count %> file(s) uploaded.
SAVE AS: upload.asp
Step 4:
UPLOAD THE FILES TO YOUR HOSTING VIA YOUR FTP PROGRAM AND VUALA.
I had a problem b4 because i was using a asp template and pasted the code. It woked when the .asp page was blank and then I pasted the code.
If you change to LINUX server you can Use PHP code.
Anyway I used this code on a fun page called http://www.oldpod.com
|