![]() |
| file upload |
|
eallanshonk
|
i have a domain hosted with hostmysite.com of course.
i have built a form with dreamweaver that contains 3 places to browse and attatch a file. i consulted this page: http://www.hostmysite.com/support/programming/aspupload/ i pasted the code into my page, html portion was oddly similar to what i had created, then i pasted the asp part and saved the file as uploadscript.asp, put it in the same directory as my site, put that in the action dialog of my form and i am stuck right there. when i test it i simply get a page displaying the code of the uploadscript.asp page. i have created a directory in my in side my root directory named filesubmissions, this is where i would like the files to end up. i think i may have to have the permissions changed on the server to write, but when i called customer service they told me they didn't offer anonymous logins, is this true? if so what are my other options for receiving files other than mailto. any help would be greatly appreciated. |
||||||||||||
|
|
|||||||||||||
| to clarify |
|
eallanshonk
|
just to clarify one thing, i have 2 pages, one is the form html page, and the other is the asp page both in the filesubmit folder which is in my root directory
|
||||||||||||
|
|
|||||||||||||
|
jamie
HostMySite Sales Rep
![]()
|
If the page is just displaying the ASP script that means that the server isn't processing asp files. Are you on a linux plan? If so, you can't use ASP on your site, so you'll need to choose a different language for your upload script (PHP maybe?).
|
||||||||||||
|
|
|||||||||||||
| not linux |
|
eallanshonk
|
no i have contacted hostmysite and than said it was not linux, and in live chat they looked at the code and said it looked right, here it is:
asp page: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <HTML> <BODY> <% Set Upload = Server.CreateObject("Persits.Upload.1") Count = Upload.SaveVirtual("virtual_directory_name") %> <% = Count %> files uploaded. </BODY> </HTML> </body> </html> and here is the html page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <FORM METHOD="POST" ENCTYPE="application/x-www-form-urlencoded" ACTION="uploadscript.asp"> <INPUT TYPE=FILE SIZE=60 NAME="FILE1"><BR> <INPUT TYPE=FILE SIZE=60 NAME="FILE2"><BR> <INPUT TYPE=FILE SIZE=60 NAME="FILE3"><BR> <INPUT TYPE=SUBMIT VALUE="Upload!"> </FORM> </BODY> </HTML> </body> </html> |
||||||||||||
|
|
|||||||||||||
| file upload |
|
||
|



