jQuery File Upload (Show uploaded images)
<p>I'm creating a CMS platform with php &amp; MySql.
Ι'm using <a href="http://blueimp.github.io/jQuery-File-Upload/" rel="nofollow">jQuery File Upload</a> in order to upload images in the server and the database. 
The problem is that the uploader shows all the images of the folder. 
I want to show only images with a specific id from the database.
How can i do this with java?</p>

<p>HERE IS THE CODE</p>

<pre><code>&lt;script id="template-download" type="text/x-tmpl"&gt;



{% for (var i=0, file; file=o.files[i]; i++) { %}
    &lt;tr class="template-download fade"&gt;
        &lt;td&gt;
            &lt;span class="preview"&gt;
                {% if (file.thumbnailUrl) { %}
                    &lt;a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery&gt;&lt;img src="{%=file.thumbnailUrl%}"&gt;&lt;/a&gt;
                {% } %}
            &lt;/span&gt;
        &lt;/td&gt;


        &lt;td&gt;
        &lt;p class="title"&gt;&lt;strong&gt;{%=file.title||''%}&lt;/strong&gt;&lt;/p&gt;
&lt;p class="description"&gt;{%=file.description||''%}&lt;/p&gt;
            &lt;p class="name"&gt;
                {% if (file.url) { %}
                    &lt;a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}&gt;{%=file.name%}&lt;/a&gt;
                {% } else { %}
                    &lt;span&gt;{%=file.name%}&lt;/span&gt;
                {% } %}
            &lt;/p&gt;
            {% if (file.error) { %}
                &lt;div&gt;&lt;span class="label label-danger"&gt;Error&lt;/span&gt; {%=file.error%}&lt;/div&gt;
            {% } %}

        &lt;/td&gt;
        &lt;td&gt;
            &lt;span class="size"&gt;{%=o.formatFileSize(file.size)%}&lt;/span&gt;
        &lt;/td&gt;
        &lt;td&gt;
            {% if (file.deleteUrl) { %}
                &lt;button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}&gt;
                    &lt;i class="glyphicon glyphicon-trash"&gt;&lt;/i&gt;
                    &lt;span&gt;Delete&lt;/span&gt;
                &lt;/button&gt;
                &lt;input type="checkbox" name="delete" value="1" class="toggle"&gt;
            {% } else { %}
                &lt;button class="btn btn-warning cancel"&gt;
                    &lt;i class="glyphicon glyphicon-ban-circle"&gt;&lt;/i&gt;
                    &lt;span&gt;Cancel&lt;/span&gt;
                &lt;/button&gt;
            {% } %}
        &lt;/td&gt;
    &lt;/tr&gt;
{% } %}
&lt;/script&gt;
</code></pre>