-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Thanks for your awesome file upload.
What about a custom function to extend the rejected file upload logic?
I can define "accept" to whitelist file extensions, thats pretty nice. But i cant add a check for files with 0 size. I can do it by my self, but then i have all the 'invalid' files in my files array not in my rejected files array.
$scope.handleFileSelected = function ($files, $rejectedFiles) {
if ($files && $files.length > 0) {
// i would like to do this in a fn which add all files in the rejected files.
var filesWithZeroSize = getFilesWithZeroSize($files);
}
}
Thank you very much :)