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

Full description about file limitations #400

Open
matiosfree opened this issue Nov 1, 2020 · 2 comments
Open

Full description about file limitations #400

matiosfree opened this issue Nov 1, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request up for grabs Feel free to pick this up in a PR!

Comments

@matiosfree
Copy link

Right now there is no way to see in the dropzone what exactly mimes and maxFileSize are allowed. It would be very helpful to see that before user selects some files.
The message could be like:
"Allowed file formats: jpg, png. Max file size: 2Mb"

@wireland1992
Copy link
Contributor

I would also like this feature. My workaround was to add it on the "open" event.

DocUppload.on('open', function(){
//include docTitle and helptext
$(DocUppload.container).find(".uppload-service--local").prepend("<input type='text' placeholder='Enter Document Title' class='input' id='docTitle'>");
//add helptext
$(DocUppload.container).find(".drop-area").append('<p>Allowed filetypes: pdf, doc, docx, jpeg, png<br>Maximum File Size: 5MB</p>');
});

Which produces this:
Screenshot 2020-11-02 120003

@AnandChowdhary
Copy link
Contributor

Makes sense, great idea!

@AnandChowdhary AnandChowdhary added enhancement New feature or request up for grabs Feel free to pick this up in a PR! labels Nov 2, 2020
@AnandChowdhary AnandChowdhary self-assigned this Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up for grabs Feel free to pick this up in a PR!
Development

No branches or pull requests

3 participants