Fine-Uploader - retry with "scaling" and "hideScaled" only sends original image

311 Views Asked by At

I'm calling Fine-Uploader to upload images with client-side scaling, and I'm hiding the scaled images. If there's a bug in my server-side receiver CGI script then all uploads fail and the image shows a "Retry" button, but clicking it (after fixing the bug!) only causes the failed original image to be resent. The scaled images are lost. Here's the fine-uploader call. What am I missing to get it to resend the scaled images if they failed?

$('#fine-uploader-manual-trigger').fineUploader({
        template: 'qq-template-manual-trigger',
        request: {
            endpoint: 'cgi/fine-uploader.cgi',
        },
        thumbnails: {
            placeholders: {
                waitingPath: PLACEHOLDERS+'waiting-generic.png',
                notAvailablePath: PLACEHOLDERS+'not_available-generic.png'
            }
        },
        // request client-size scaling - causes upload of "image (size).jpg" in addition to "image.jpg"
        scaling: {
            sizes: [
                { name: "thumb", maxSize: 200 },
                { name: "popup", maxSize: 600 },
            ],
            hideScaled: true
        },
        autoUpload: false
    });

    $('#trigger-upload').click(function() {
        $('#fine-uploader-manual-trigger').fineUploader('uploadStoredFiles');
    });
};
1

There are 1 best solutions below

1
On

From the scaled images documentation page:

Since they will not be represented in the UI, this means that they cannot be deleted, canceled, or manually retried via Fine Uploader's default UI. Failures of these scaled versions will obviously not be apparent to users by default if you elect to hide them from the UI.

If you want to manually retry hidden scaled images, you'll need to get a handle on their IDs and use the retry API method.