Using Jquery File Upload I'd like to add a title field for each file uploaded. So that once a file was uploaded a text box for title was added below each file.
The section Setting formData on upload start for each individual file upload seems like what I want to do but I'm not exactly sure where to put that.
https://github.com/blueimp/jQuery-File-Upload/wiki/How-to-submit-additional-form-data
Tried adding this to the html but didn't do anything.
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-upload fade">
<!-- ... -->
<td class="title"><label>Title: <input name="title[]" required></label></td>
<!-- ... -->
</tr>
{% } %}
</script>
Thanks