Need some work done? Post a Project Today
I am in need of a php ajax multiple upload script.
It should upload files to my ftp, add values to my mysql database and also it should also add a text row (metadata) with information of the upload to a textfile or xml file, this textfile with be populated with a text row (metadata) each time a new upload is being made.
This upload script will be used to add files and additional information to my members site.
Upon upload the user should be presented with a form containing form fields, input fields and some dropdowns that are populated with information from my database. And at the bottom of the form there should be two upload file options, where the user can upload a pdf file and a mp3 file, preventing any other file type. If the user only has a pdf and no mp3 file to upload then there should be an option where the user can check a box to allow him to upload without a mp3, just the pdf file. Some kind of validation, because if not all fields are filled then it should give an error message telling the user to fill in the necessary fields.
Once the user has filled out the necessary form fields and chosen what pdf and mp3 file to upload, the user should be able to either submit the upload or given the opportunity to add more uploads before he submits. If the user chooses to upload more then a new set of form fields that goes with that upload should be presented, these new uploads should use the same mp3 file that was chosen to be uploaded in the first upload but each new upload has its own pdf file. So all the uploads share the same mp3 file but have their own pdf file. Each upload should be unique in the database.
There should be a next and previous buttons where the user can browse through each upload to edit the form fileds if needed before the user hits submit.
And upon submit the user should see a final confirmation page where the information the user entered on the different form fileds for each upload should be presented with a check box at the bottom that says "I confirm" or similar. If "I cofirm" is checked and the submit button is pressed. The upload should be processed. The form fileds should be added to the database and the mp3 and pdf files should be uploaded to the ftp and a text row should be added to a textfile or xml file like this for example when both mp3 and pdf file has uploaded:
if the user have checked that no mp3 file will be uploaded then the text row should look like this:
All the files should be renamed like so: DRENI-todaysdate-uniquenumber.pdf or DRENI-todaysdate-uniquenumber.mp3
They filename must be unique for each upload and differentiate itself from the already uploaded files.
Since multiple users will be uploading at the same time there must be a mechanism that prevents files being renamed the same.
When uploaded to my ftp the first upload of the day should create a folder with todays date for example 2013-02-14 where all the uploads of today gets uploaded to.
Im thinking in maybe purchasing this theme and build the upload based on this theme. Have a look at the form wizard on this theme:
The uploading process should maybe look like the form wizard in that theme.