angular-file-upload icon indicating copy to clipboard operation
angular-file-upload copied to clipboard

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

Open User195 opened this issue 5 years ago • 1 comments

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?

User195 avatar Feb 19 '19 17:02 User195

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

ygj6 avatar Dec 06 '19 08:12 ygj6