I have a setup with a traditional form that's checked with jQuery Tools validator and submitted via POST. I like that this class does not require extra classnames or other superfluous metadata to validate, standard HTML5 attributes are enough.
I now would like to extend this functionality with the Plupload upload solution. I know that all modern upload solutions work via Ajax these days, so I was thinking about a setup in which the user fills out the form, puts files in the upload queue and then submits the form. The form submit would imply:
- Validation through jQuery Tools Validator...
- If validated, uploading all files in the upload queue... (to a temporary folder)
- If upload went well, actual submit of the form via POST and moving files from temporary folder to permanent location.
I had a similar setup in place with Uploadify, where the filenames where appended into a hidden input field after succesful upload. On submit of the form, I thus had all filenames via $_POST. However, there were conflicts between jQuery Tools Validator and Uploadify. That's why I'm now looking into Plupload.
My questions?
- What do you think of this setup? Is this a good strategy?
- How would I go about implementing this on a technical level?
Thanks.