Archived from the Transloadit support forum. Originally posted on May 1, 2013; details may be outdated, see our docs for current behavior. Original thread
Hello,
I’d like to be able to upload multiple files in a single form using the jQuery plugin. The catch is that I want to use different templates for the various files. Using the jQuery plugin integration, it instructs you to add a hidden input field that contains the TemplateID you want your uploads to be processed against. This seems to limit us to a single template - is there any way to use multiple templates in a single form? It would be nice if perhaps we could decorate each file input with a custom attribute that contained the template to process against.
<input type="hidden" name="params" value="{"auth":{"key":"[KEY]"},"template_id":"[TEMPLATEID_1]"}">
<input type="file" name="content[bannerheader]">
<input type="hidden" name="params" value="{"auth":{"key":"[KEY]"},"template_id":"[TEMPLATEID_2]"}">
<input type="file" name="content[video]">