Note that there are some explanatory texts on larger screens.

plurals
  1. POImage uploader from http://dondedeportes.es/uploader-previewer/: Change input to take multiple requests
    primarykey
    data
    text
    <p>I am working with an image uploader from the <a href="http://dondedeportes.es/uploader-previewer/" rel="nofollow">SITE</a> in the title. This image uploader generates several forms with its respective iframe for inputs. </p> <p>I am trying to eliminate this separate inputs and have only one input that will take multiple uploads(at least up to 4). I spoke with the author and only receive an answer of modifying the uploaderPreviewer.js and I get can what I want accomplished. </p> <p>How can I modify the js file to have it generate one input that will take multiple file uploads(at least up to 4)?</p> <p>If you like to take a full look at the js file: <a href="http://webprolearner2346.zxq.net/imageupload/js/uploaderPreviewer.js" rel="nofollow">HERE</a></p> <p><strong>Construct Form</strong></p> <pre><code>jQuery.uploaderPreviewer = new Object({ formsCount: 1, // number of image forms to handle allowedImageTypes: new Array('png', 'jpg', 'jpeg', 'gif'), uploadImageAjaxUrl: 'php/uploadImage.php', removeImageAjaxUrl: 'php/removeImage.php', uploadsThumbDir: 'uploads/thumb/', messages: { imageLabel: 'Image', fileTypeError: 'The file is not an allowed type.', removeButtonCaption: 'remove', removeButtonTitle: 'Remove the image' } }); </code></pre> <p><strong>Public Function</strong></p> <pre><code>jQuery.uploaderPreviewer.createImageForms = function(options) { $.extend(this, options); var forms = ''; for(var i=1; i &lt;= this.formsCount; i++) { forms += createImageForm(i); } return configureImageForms($(forms)); }; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload