Integrate transloadit into existing form?

Archived from the Transloadit support forum. Originally posted on January 13, 2011; details may be outdated, see our docs for current behavior. Original thread

Is there any way to integrate transloadit’s uploading/processing capabilities into an existing form that does more than simply upload a file? For example: creating a user, where the user can choose to upload an avatar. It wouldn’t make sense to have the avatar upload be a separate step.

Yes. If the form can use JS, you can simply use the jQuery plugin. When the form is submitted, it will send the file(s) to transloadit (through a hidden iframe), and when that is done, it will submit your original form (without the files), to your system. The POST received by your system will also include a “transloadit” parameter, which has all the details about the uploaded file(s).

Let me know if this makes sense / if there is anything else I can do to help!

That works. Thanks!