I'm looking for a mechanism by which to ajax-submit a rather complex form. Think "email in a browser". I have multiple "dropboxes" to allow users to drag-and-drop file attachments, but I also need to submit other form elements simultaneously. Therefore I need to queue the file items as opposed to immediately sending them on drop.
I've seen 100,000,001 blog posts and SO threads on how to handle drag and drop. I've got that covered. The issue is that of submitting the full form together as opposed to uploading files independently then submitting the remainder of the form.
I've looked at FormData, but the examples i've encountered seem to require an "old school" file input. And since you can't manipulate a file input in JS that mechanism doesn't seem to be useful to me.
I've considered staggering the operations (e.g. submit the main portion of the form, and on success submit the files behind it with a separate XMLHttpRequest and FileReader, but I'd rather do it all together if possible).
Also, it would be nice to have a solution that supports IE, but frankly FF and Safari are sufficient. Any assistance would be appreciated. Hopefully I'm overlooking something simple. Thanks in advance.