danialfarid / ng-file-upload

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

Problem with large files upload #2078

Closed EduardoAngelim closed 6 years ago

EduardoAngelim commented 6 years ago

When a try to upload a file with 40MB size, the chrome console returns this message:

angular.js:14642 Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"http://localhost:49972/api/equipamento/novoLog/","file":{"file":"..."},"data":"...","fileFormDataName":"file[file]","_isDigested":true,"_chunkSize":null,"headers":{"Accept":"application/json, text/plain, */*"},"_deferred":{"promise":{}},"withCredentials":true},"statusText":""}

When tried to upload a file with 3MB size it's worked fine.

ngf-max-size is set to 70MB I am using windows authentication for this web application and .NET MVC

`<div ngf-drop class="drop-box" ngf-drag-over-class="'dragover'" ng-model="file" ngf-multiple="false" ngf-allow-dir="true" ngf-pattern="'image/*,application/pdf,.rar,.zip,.msg'" ngf-model-invalid="invalidFiles" style="margin-left: 15px">



Drop files here
` Thanks!