danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.6k forks source link

Images are uploading crushed/warped from Upload.dataUrl #2116

Open connor-simpson opened 5 years ago

connor-simpson commented 5 years ago

I've recently been using ng-file-upload to allow clients to upload certain images of their properties etc, however, I'm discovering that when they are uploading from mobile that some images are appearing crushed/warped.

In order to upload, we use Upload.dataUrl and then pass that through to our server to be stored.

e.g. images: https://i.imgur.com/zY2aO4Y.jpg https://i.imgur.com/WybGWtJ.png

We then added ngf-fix-orientation attached but, removed it as it was still happening, but worse (some images began uploading completely black). Has anyone encountered this issue?