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

Add support to validate attachment uploads by type and size #4618

Merged
merged 1 commit into from Aug 3, 2022

Conversation

NotTheEvilOne
Copy link
Contributor

This PR adds support to WeKan to validate attachment uploads by type and size. You may configure a list of acceptable MIME types, use * (e.g. image/*) instead of a subtype or * to accept all incoming types. Size value is the number of bytes.

Example:

ATTACHMENTS_UPLOAD_MIME_TYPES="image/*,text/*"
ATTACHMENTS_UPLOAD_MAX_SIZE=5000000

xet7 added a commit that referenced this pull request Aug 3, 2022
xet7 added a commit that referenced this pull request Aug 3, 2022
@xet7 xet7 merged commit d729269 into wekan:master Aug 3, 2022
@NotTheEvilOne NotTheEvilOne deleted the pr/support-upload-validation branch August 10, 2022 12:44
Emile840 pushed a commit to Emile840/wekan that referenced this pull request Sep 21, 2022
Emile840 pushed a commit to Emile840/wekan that referenced this pull request Sep 21, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants