> So suppose we were to make a plugin for this, let's say we call it > serializeuploads. > This is how I see it working: > 1. Start with a form, say MYFORM where some elements maybe file upload > elements > 2. The serializeuploads plugin initializer will convert each file upload > element into a separate form by wrapping a form around it. > 3. It will also create a hidden iframe for each file upload element to which > the form can be submitted. > 4. When you want to serialize the form, you first call the serializeuploads > plugin. This will submit each of the file upload elements' forms to the > respective iframes. > 5. The server side script which accepts the upload can be anything... it is > expected to save the file on the server and return the server path of the > file. > 6. On completion of each submit, the plugin will insert a hidden/text > element to MYFORM, whose value will be the server path of the uploaded file. > 7. On completion of the submits, one can specify a callback function which > is called. At this time, the normal form serializer can be used to get the > path of the uploaded file. > 8. The plugin can also accept a max timeout, so that it will abort all > uploads which do not complete in the given time, and intimate the result to > the callback function. > > Whoosh! Guys, is there a simpler way of doing this?
That's roughly the steps that you have to take... frustrating, isn't it? --John _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/