I am trying to insert additional Form Data to MYSQL via Blueimp jquery file uploader. But I have some problems.
I am using demo settings and I changed my template-upload to following code (* I added Notunuz input)
<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="preview"><span class="fade"></span></td>
<td class="title"><label>Notunuz: <input name="title[]"></label></td>
{% if (file.error) { %}
<td class="error" colspan="2"><span class="label label-important">Hata</span> {%=file.error%}</td>
{% } else if (o.files.valid && !i) { %}
<td>
<div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="bar" style="width:0%;"></div></div>
</td>
<td class="start">{% if (!o.options.autoUpload) { %}
<button class="btn btn-primary">
<i class="icon-upload icon-white"></i>
<span>Başlat</span>
</button>
{% } %}</td>
{% } else { %}
<td colspan="2"></td>
{% } %}
</tr>
{% } %}
</script>
- How to get additional Form Data?
- How to change
.js
andUploadHandler.php
file?
My second question is How to redirect to specific URL upload is done?
done
handler something likelocation.href=new_url
– Brochprint_r($_POST)
and you will see all data that you sent – Broch