Send an extra variable by post in bootstrap-fileinput
<p>How to send an extra variable to php by post in <a href="https://github.com/kartik-v/bootstrap-fileinput" rel="nofollow">bootstrap-fileinput</a>.</p>

<p>I have added the css and js in my web,and here is my html:</p>

<pre><code>&lt;input name="uploadfile" id="input-id" type="file" multiple class="file" data-preview-file-type="text"&gt;
</code></pre>

<p>This is my script:  </p>

<pre><code>$('#input-id').fileinput({
    language: 'en',
    uploadUrl: 'upload?path=/',
    maxFileCount: 5,
    // allowedFileExtensions : ['any'],
});
</code></pre>

<p>it's the variable<br>
<code>path = '/'</code></p>