after googling for a way to upload a big file using angular 4, i found nothing.
i found this ng-file-upload in this question Upload big files in SPA (angular + express), but it's for angularjs, is there any thing for angular 4 ?
You can restrict the maximum allowed file size (in bytes) by using the maxFileSize property. If the selected file exceeds the maximum size, an error message will be displayed.
Use ng2 file upload plugin for angular 4 ng2-file-upload
and you can upload large files also
Sending a large file in one go may be hectic. there is implementation called upload/download files in chunks like torrent does. There is library named Tus
This library allow sending file in chunks and also resumable option is there. If any time user data over or any issue will come, user can resume file upload.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With