blossom-project / blossom

Blossom is a Java framework based on Spring-Boot which enables you to realize your projects quickly and smoothly. It comes with several modules and tools made to ease and speed up your development process.
http://blossom-project.com
Apache License 2.0
21 stars 21 forks source link

Avatar upload #171

Open mbaroukh opened 6 years ago

mbaroukh commented 6 years ago

When trying to change the avatar on a user page details, il the file is corrupted, the app stop responding and there is no error displayed.

The js console got

Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
    at H.getDataURL (http://localhost:8080/blossom/public/js/plugins/cropper/cropper.min.js:9:10548)
    at HTMLImageElement.<anonymous> (http://localhost:8080/blossom/public/js/plugins/cropper/cropper.min.js:9:16839)
    at Function.each (http://localhost:8080/blossom/public/js/jquery-3.1.1.min.js:2:2815)
    at r.fn.init.each (http://localhost:8080/blossom/public/js/jquery-3.1.1.min.js:2:1003)
    at r.fn.init.a.fn.cropper (http://localhost:8080/blossom/public/js/plugins/cropper/cropper.min.js:9:16703)
    at HTMLButtonElement.<anonymous> (<anonymous>:44:28)
    at HTMLButtonElement.dispatch (http://localhost:8080/blossom/public/js/jquery-3.1.1.min.js:3:10315)
    at HTMLButtonElement.q.handle (http://localhost:8080/blossom/public/js/jquery-3.1.1.min.js:3:8342)