Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 25th, 2003, 09:10 AM
jeankins jeankins is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 jeankins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Help with File Upload Forms

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

Reply With Quote
  #2  
Old July 25th, 2003, 04:09 PM
ygfperson ygfperson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 10 ygfperson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
My guess is C:\temp\SoftArtisans.FileUp. Or somewhere in the C:\temp directory.

Reply With Quote
  #3  
Old July 26th, 2003, 03:25 PM
polyesterhat's Avatar
polyesterhat polyesterhat is offline
Only Human
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Florida
Posts: 189 polyesterhat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 8 m 48 sec
Reputation Power: 6
Send a message via AIM to polyesterhat Send a message via MSN to polyesterhat Send a message via Yahoo to polyesterhat
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.
Attached Files
File Type: gz fileupload.tar.gz (8.4 KB, 214 views)
__________________
I can do all things through Christ which strengtheneth me. ~Phil. 4:13

Reply With Quote
  #4  
Old August 21st, 2003, 10:51 PM
skamusic568 skamusic568 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 skamusic568 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i tried that script above and keeps telling me no file was uploaded could u give me any help

heres a link URL

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Help with File Upload Forms


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT