bleenco / ngx-uploader

Angular File Uploader
https://ngx-uploader.jankuri.me
MIT License
756 stars 348 forks source link

Uploading a bigger file than 4MB caused ERR_CONNECTION_RESET #575

Closed svarga91 closed 8 months ago

svarga91 commented 8 months ago

setup: angular 6 + .NET framework 4.8

onUploadOutput(output: UploadOutput): void {
console.log(output);
...
}

{type: 'addedToQueue', file: {…}}
edit-employee.component.ts:155 {type: 'allAddedToQueue'}
edit-employee.component.ts:155 {type: 'start', file: {…}}
edit-employee.component.ts:155 {type: 'uploading', file: {…}}
edit-employee.component.ts:155 {type: 'done', file: {…}}
zone.js:2969  POST http://localhost:4200/api/employee/UploadProfilePicture?id=3507 **net::ERR_CONNECTION_RESET**
svarga91 commented 8 months ago

FYI Issue caused by .net backend (web API) Fix in web.config:

  <system.web>
    <httpRuntime maxRequestLength="10000" />
  </system.web>
jkuri commented 8 months ago

hey @svarga91, are you sure you don’t have that limitation on the API?

jkuri commented 8 months ago

okay 👍