Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
User195 opened this issue Feb 19, 2019 · 1 comment

Comments

@User195
Copy link

User195 commented Feb 19, 2019

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
Copy link
Collaborator

ygj6 commented Dec 6, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants