I am using ng2-file-upload for file upload requirement with my angular application. in this directive i can able to set the maxFileSize
- but the thing is, there is a way to upload just empty file. so i am looking for a solution to prevent the empty file upload.
is there a way to test it and throw error? or can i set the min size for upload?
here is my config:
this.uploader = new FileUploader({
isHTML5: true,
maxFileSize: maxFileSize, //how to set min size?
queueLimit: queueLimit,
autoUpload: false,
headers: [{name: 'Content-Type', value: 'application/octet-stream'}]
});