angular-file-upload
angular-file-upload copied to clipboard
FileUploader doesn't accept file without extension (file with empty extension)
I need to upload files without any extensions like "filename". It seems that now FileUploader doesn't allow this. Is that possible to upload files without any extension with this plugin?
The default filter folder
will reject files without extensions. You can close it. See the following code:
for (var i = 0; i < uploader.filters.length; i++) {
if(uploader.filters[i].name == "folder"){
uploader.filters[i].fn = function(){return true};
}
}