Handling NodsJS Server Side of Fine Uploader for S

2019-08-27 02:25发布

问题:

I successfully upload images and other files using nodejs fineuploader. Bt when I try uplaoding scaled images, a simple file 'blob'is created at server. If I rename file blob to blob.jpg, image does show, that means it is the scaled image. The problem is server side does not get image name, type, path, so it creates a file blob, and keeps overwriting file blob for number of images. How can this problem be solved?

This is the information regarding scaled images that nodejs server gets:

click here to see error image

Client Code:

$('#fine-uploader-manual-trigger').fineUploader({
            template: 'qq-template-manual-trigger',
            request: {
                endpoint: '/uploads'
            },
            thumbnails: {
                placeholders: {
                    waitingPath: '/static/fine-uploader/placeholders/waiting-generic.png',
                    notAvailablePath: '/static/fine-uploader/placeholders/not_available-generic.png'
                }
            },
            retry: {
                enableAuto: true,
                maxAutoAttempts: 2
            },
            autoUpload: false,
            debug: false,
            scaling: {
                includeExif: true,
                sendOriginal: false,
                hideScaled: false,
                sizes: [                            
                    {maxSize: 400}
                ]
            }
        });