My second post on this now, due to a slow response...
I need someone to code a PHP upload script for me, asap. But wait, it's not that simple... The upload script needs to have these details:
Only accept .mp3 files
Only accept audio/mp3 mime type
Min size for upload: 10kb
Max size for upload: 1000kb
Require users to enter artist in a text field
Require users to enter title in a text field
Require users to select genre from drop-down box
Require users to tick a t&c accept box
----
In addition to this, I need the uploaded file renamed from the original file name to this: 'randomnumber'.'title'.mp3. I.e. a four digit random number followed by a dot, then the title the user filled out in the form.
his also means replacing spaces with '.'s (str_replace?...) and changing all caps to lower case. For example: '4798.speed.of.sound.mp3'.
Also, the following information about the upload needs to be added to my mysql database:
id: (auto_inc),
artist: (From text field)
title: (from text field)
genre: (from drop down box)
type: (hidden field in form, stays as 'Ringtone')
Filename: (Must be the new, renamed file)
size: (Size of file in bytes)
Uploader: (this code: $username = $userdata['username']
dateuploaded: (php date 'Ymd')
I don't need a page listing uploads or anything like that, as the output should come from the db. If you want to see the current script, please let me know.
I know a fair bit of php anway, so i'll be able to make modifications to a script if necessary...
Like i said, asap and obviously as cheap as possbile. Hit me with your offers!