Max file size with ng2-file-upload #983
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am using Angular 2 and typescript but with this code and i am still getting a "413 Request Entity too large" error. Please help
@Component({
moduleId: module.id,
//define the element to be selected from the html structure.
selector: 'NeedAnalysisConsult',
//location of our template rather than writing inline templates.
templateUrl: 'need-analysis-consultation.component.html',
})
export class NeedAnalysisConsultationComponent implements OnInit {
model:any={};
consultationDate: Date;
organisation: string;
devCode:String;
maxFileSize = 50 * 1024 * 1024;
}
Sounds like a message from server (413). Are you sure that the server supports large files? (50gb??)
Had this issue too, had to add 'client_max_body_size 10M;' to the nginx conf