Skip to content

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

Merged
xet7 merged 1 commit intowekan:masterfrom
NotTheEvilOne:pr/support-upload-validation
Aug 3, 2022
Merged

Add support to validate attachment uploads by type and size#4618
xet7 merged 1 commit intowekan:masterfrom
NotTheEvilOne:pr/support-upload-validation

Conversation

@NotTheEvilOne
Copy link
Copy Markdown
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.

2 participants