I am implementing a jQuery file downloader for Blueimp https://github.com/blueimp/jQuery-File-Upload , and I want to change previewMaxWidth and previewMaxHeight after adding the first image. This is due to the fact that I have an image with a product function, and then subsequent representations of the product, each of which should be displayed less than the image of the function.
Here is my request to download the file:
$('.imageupload').fileupload({
autoUpload : true,
acceptFileTypes : /(\.|\/)(gif|jpe?g|png)$/i,
previewMaxWidth : 198,
previewMaxHeight : 800,
uploadTemplateId : 'product-add-image-upload',
downloadTemplateId : 'product-add-image-download'
}).bind('fileuploadadded', function(e, data) {
});
source
share