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

Mobile device - Incorrect artifacts appear when you upload a photo #2045

Open jakeweb opened 6 years ago

jakeweb commented 6 years ago

In angular app I have a button

<input type="file"
                   ngf-select
                   ngf-drop
                   ngf-change="$ctrl.onFileSelect()"
                   ngf-model-options="{updateOn: 'change'}"
                   ng-model="$ctrl.file"
                   name="$ctrl.inputName"
                   ngf-fix-orientation="true"
                   ngf-pattern="{{ $ctrl.filePattern }}"
                   ngf-accept="{{ $ctrl.filePattern }}"
                   ngf-max-size="'40MB'"
                   ngf-model-invalid="errorFile"
                   not-drop
                   ng-required="!$ctrl.preview">

It works ok on desktop and on some mobiles. But on Android 6.0.1 I have a bug when I'm trying upload new photo. Here is the video https://drive.google.com/file/d/1Wa-JDXVe4mWakwJ1WgfZChKJllxA54EZ/view

Angular version 1.5.8 ng-file-upload version 12.2.12

WuglyakBolgoink commented 6 years ago

@jakeweb решил проблему?