|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need to incorporate a file upload form on my web, but the server doesn't have Server Extensions 2002 installed, so I was given the code below:
(File Upload Form) <HTML> <HEAD> <TITLE>Please Upload Your File</TITLE> <meta name="Microsoft Theme" content="blends 011"> </HEAD> <BODY> <form enctype="multipart/form-data" method="POST" action="formresp.asp"> Enter filename to upload: <input type="file" name="f1" size="20"><br> <input type="submit"> </form> </BODY> </HTML> (Form Submission Confirmation Page) <%@ LANGUAGE="VBSCRIPT" %> <HTML> <HEAD> <TITLE>Upload File Results</TITLE> <meta name="Microsoft Theme" content="blends 011, default"> </HEAD> <BODY>Thank you for uploading your file.<br> <% Set upl = Server.CreateObject("SoftArtisans.FileUp") %> <% upl.Path = "C:/temp" %> <% upl.Save %><BR> Total Bytes Written: <%=upl.TotalBytes%> </BODY> </HTML> This code works, but I don't know exactly where the uploaded files are sent. I want to redirect them to an online folder so that users can come and browse at their leisure, but when I do try to change the upload path, the component doesn't work any more, giving me either an error message or a "This page cannot be displayed" message. Can anyone help me with my code and tell me what I'm doing wrong? (And yes, I did set the permissions on the online folder to allow anonymous uploads to that directory) Thanks in advance, Jean ![]() |
|
#2
|
|||
|
|||
|
My guess is C:\temp\SoftArtisans.FileUp. Or somewhere in the C:\temp directory.
|
|
#3
|
||||
|
||||
|
I have some better code for you:
But its in PHP and I don't know if you can use it. Hope this helps, its fully customizable, you change the $path variable to determine where the file goes.
__________________
I can do all things through Christ which strengtheneth me. ~Phil. 4:13 |
|
#4
|
|||
|
|||
|
i tried that script above and keeps telling me no file was uploaded could u give me any help
heres a link URL |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Help with File Upload Forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|