Search code examples
angularjsng-file-upload

ng-file-upload open file too slow


I'm using ng-file-upload as documented

 <input type="file"
      name="file"
      accept="image/*"
      ngf-max-size="5MB"
      ngf-select="uploadFile($file, form)"
      class="form-control">

However, sometimes it takes very long time to open the file dialogue.

Though it never fails, 30s waiting is beyond acceptable.

Has anyone met this before, is there any way to fix this?


Solution

  • Try to change the accept attribute to "image/png,image/jpg,image/gif". Or your file input can be slow in macos.