nervgh / angular-file-upload

[ALMOST NOT MAINTAINED] Angular File Upload is a module for the AngularJS framework
MIT License
3.44k stars 1.13k forks source link

FileUploader doesn't accept file without extension (file with empty extension) #861

Open User195 opened 5 years ago

User195 commented 5 years ago

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?

ygj6 commented 4 years ago

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};
       }
}