I need a simple drag&drop upload script. It should also offer an alternative button to select the file.
If the file is droped or selected, it should get uploadet to the directory /files.
The filename, along with several data should get saved to a mySql table called "PRODUCTS". This data is:
OWNER
This is an INT, to get it is a little bit complicated. There is
$_SESSION[username]
You need a query
[$result = mysql_query("SELECT ID FROM USERS WHERE USERNAME = '$_POST[custom]'");
while($row = mysql_fetch_array($result))
{$id = $row['ID'];
}
Now ID is what has to go to the filed OWNER.
DATE -> The actual Date
TRUEFILENAME -> The name of the uploded file
SUBMIT -> Hardcoded value "upload"
EMAIL_TEMLATES -> Hardcoded Value "1"
APSTATUS -> Hardcoded Value "0"
after the upload it should direct to a page with a form to add some more data:
TITLE
CAPTION
CATEGORY
DESCRITION
PRICE
After Submit, this Values should be added to the same entry. Than a third page will open to allow upload an Image, make sure only jpg, png, and gif files can be uploaded.
Again Drag and Drop + upload via Button should be supported.
The file will go to the directory, /product_images/large and the filename will to to the before used sql table in the column IMAGENAME.
After upload successfully a thank you page should be displayed.
Please give me a quote, tell me how long it would need to develope it and show similar thigs you have developed. Quotes exeeding 150 will not ve considred.