Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

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 August 30th, 2003, 07:19 PM
mike400hp mike400hp is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 60 mike400hp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 4 m 49 sec
Reputation Power: 5
Question How to create a file upload page??

Alright, I created a website, www.fearlessperformance.com and I would like my friends to be able to upload new pictures and videos directly to the site. I'm trying to figure out how I create an upload page that will let them select files from their hard drives and upload them to a folder on the site. I want to be able to restrict the file types to only allow for picture or video files. Where do I being? My server supports MySQL, and PHP if that makes any difference. Also I am using Dreamweaver MX v.6. Any information you can give would be great.
Thanks,
Michael

Reply With Quote
  #2  
Old September 1st, 2003, 05:19 PM
breadwild breadwild is offline
*foo = *bar;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Wheaton, IL
Posts: 161 breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 7 h 59 m 53 sec
Reputation Power: 20
You will need to create a <form> with enctype="multipart/form-data" as a parameter. In your form you will need a <input type='file'> box which will allow them to browse their drive and select.

You will have to validate the file type in your cgi script because enctype="multipart/form-data" doesn't allow client-side validation (not that I have been able to make work). Then you will need a Perl or PHP script on your server to upload your file.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > How to create a file upload page??


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 1 hosted by Hostway