Skip to content

Support for whitelisting extensions/mimetype#643

Open
harminius wants to merge 2 commits into
developfrom
whitelisting_extensions_mimetypes
Open

Support for whitelisting extensions/mimetype#643
harminius wants to merge 2 commits into
developfrom
whitelisting_extensions_mimetypes

Conversation

@harminius

@harminius harminius commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Resolves #573

Since #370, the server rejects "dangerous" file types (e.g. .py, .sh) on upload - but self-hosted deployments that legitimately distribute scripts alongside QGIS projects had no way to opt out.

This adds two optional, comma-separated config vars:

UPLOAD_EXTENSIONS_WHITELIST - extra file extensions to permit, e.g. .py, .sh
UPLOAD_MIME_TYPES_WHITELIST- extra MIME types to permit, e.g. text/x-shellscript

image

@harminius harminius requested review from MarcelGeo and varmar05 June 22, 2026 13:40
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 27957638593

Coverage increased (+0.02%) to 92.171%

Details

  • Coverage increased (+0.02%) from the base build.
  • Patch coverage: 19 of 19 lines across 3 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 10040
Covered Lines: 9254
Line Coverage: 92.17%
Coverage Strength: 0.92 hits per line

💛 - Coveralls

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