Md Asifur Rahman
Md Asifur Rahman

Reputation: 1

Blueimp jquery-file-upload, showing wrong file size for jpeg/jpg greater than 2MB

While working with blueimg fileuploader library: https://blueimp.github.io/jQuery-File-Upload/

If I add jpeg/jpg image with more than 2MB it shows wrong file size. And uploaded file also has the wrong file size.

Is it a bug of the library or i'm missing any configuration?

I have found that filesize is changed after rendering with its template rendering script (https://github.com/blueimp/JavaScript-Templates).

Edit:

Found the solution image resize option need to be disabled.

disableImageResize :true

Though default configuration is true.

Upvotes: 0

Views: 383

Answers (1)

Arg0n
Arg0n

Reputation: 8423

I add an answer just so that other people will not come here trying to solve this since it's already resolved i take it.

OP needed to set the property disableImageResize to true to prevent the plugin from changing the images.

Upvotes: 0

Related Questions