English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

My site http://www.myverdict.net is mainly a direct democracy site, which involves voting. I've also added a poetry competition and will soon have a short story comp which I can build in the same way.
I would like to have a song comp and I need to know how to let users upload their songs. They will obviously need to browse their drive to find the song and this is the bit I'm having difficulty with. I am using Dreamweaver 8.
Thanks in advance

2007-07-13 01:02:38 · 2 answers · asked by Taffd 3 in Computers & Internet Programming & Design

2 answers

Dreamweaver will not allow you to do so... You will have to buy add-ons.
You are better off scrapping Dreamweaver and start writing your code with notepad! (No joke).
The procedure is a little bit long, but can be achieved easilly with PhP.
1. You make a form with a tag
Your form must be sent as "enctype='multipart/form-data' " and sent to a PhP code (say "receiver.php")
2. The receiver.php code needs to receive the file into a temporary directory (tmp) for which the properties have to be set to 777 (full unrestricted access).
3. Once the file is uploaded, you must get your file through a virus check (various available in PhP).
4. Once checked, you must use
move_uploaded_file () function to move that file to the folder where you want to keep it.
Note: if these are music files (or video), you also better install a synchronous progress bar on the client PC (upload may last a LONG time, as upload bandwidth is usually 10 to 20 times slower than download speed (a 2Mb ADSL download is usually around 120kb upload only!)
I have several samples in various websites I have made (check www.skytargets.com).
Good luck!

2007-07-14 11:41:42 · answer #1 · answered by just "JR" 7 · 0 0

Think it's something to do with .php

http://www.w3schools.com/php/php_file_upload.asp

2007-07-13 08:11:22 · answer #2 · answered by john n 3 · 0 0

fedest.com, questions and answers