Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uploading large video files using angular

Tags:

angular

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 ?

like image 374
Moustafa Elkady Avatar asked Jun 06 '17 10:06

Moustafa Elkady


People also ask

How can I limit the size of attachment file upload in angular?

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.


2 Answers

Use ng2 file upload plugin for angular 4 ng2-file-upload

and you can upload large files also

like image 73
Sathish Kotha Avatar answered Oct 13 '22 11:10

Sathish Kotha


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.

like image 25
VISHAL SINGH Avatar answered Oct 13 '22 10:10

VISHAL SINGH