ng2-file-upload
ng2-file-upload copied to clipboard
allowedFileType
hi i user allowedFileType: ['.mp4'] or allowedFileType: ['mp4'], this code not working .how user type mp4 ? tnx
Hello, @aliChavoshi, this is quite late but the correct usage would be ['video'], for allowedFileType.
this.uploader = new FileUploader({
url: URL,
method: 'PUT',
disableMultipart: true,
allowedFileType: ['video'],
});
If you need to allow only mp4 videos, though, use allowedMimeType:
this.uploader = new FileUploader({
url: URL,
method: 'PUT',
disableMultipart: true,
allowedMimeType: ['video/mp4'],
});