Image upload Input: 1 input that will take up to 4 uploads
<p>I am right now working with this image upload from <a href="http://dondedeportes.es/uploader-previewer/" rel="nofollow">HERE</a>. Instead of having 3 separate image upload inputs is there a way to just have one that will take  maximum 4 requests? </p>

<pre><code>&lt;script&gt;
(function($) {

$(document).ready(function() {

    // it must be checked if there are div.imageForms because the
    // uploaderPreviewer javascript may be not included and produce an error
    if ($('div.imageForms').length) {

    $.uploaderPreviewer.formsCount = 4;

        $('div.imageForms').append($.uploaderPreviewer.createImageForms());

        // the images are populated if the admin form is to edit, and not
        // to insert
        if ($('div.imageForms[images]').length) {
            var imageFilenames = $('div.imageForms[images]').attr('images').split(',');
            $.uploaderPreviewer.populateImages(imageFilenames);
            $('div.imageForms[images]').removeAttr('images');
        }
    }

    $('#buttonSave').click(function() {
        var itemId = $(this).attr('itemId');
        if (itemId) {
            $.itemForm.update(itemId);
        }
        else {
            $.itemForm.insert();
        }
    });

});

})(jQuery);



&lt;/script&gt;
</code></pre>
