I need a client-side object that I can embed on an HTML form for uploading files and email messages. The web page is generated by PHP and will submit to a PHP script for processing. It's for a trouble ticket application that is already in place. Currently the form uses the file upload field so the user browses the local file using windows explorer and submits. I'm looking to upgrade this field with a fancier drag & drop widget.
The object/widget would function just like a "FILE" form element for uploading files with the exception that it's "Drag & Drop" and can handle both files and messages, possible multiples.
For example if you drag a file from Windows Explorer onto a small object area (defined by the object tag) the object will display an appropriate icon to indicate it has the file. On submission of the form the binary data in the object will be inserted into a database (a record for each file if we do multiple files).
I also want to be able to drag an email from Outlook into the object. It should display an email icon to indicate it has the message. On submission the binary data will be inserted into a database by the receiving script (a record for each file if we do multiple messages).
I'm not sure how I want to handle multiple files yet. Presumably by sending an array of files and/or messages in the same field object if it's not to much work. I may just force the user to do multiple submissions for multiple files/messages if it's problematic to do multiples.
## Deliverables
1) Fully functional and ready to run code.
2) Usage Examples
## Platform
Server: LAMP (Linux, Apache, MySQL, PHP)
Client: WinXP, IE6