Skip to content

Conversation

@lunika
Copy link
Member

@lunika lunika commented Jun 26, 2025

Purpose

We added the possibility to scan all uploaded files with an anti malware solution. Depending the backend used, we want to give the possibility to check the file mimtype to determine if this one is tagged as unsafe or not. To this you can set the environment variable
DOCUMENT_ATTACHMENT_CHECK_UNSAFE_MIME_TYPES_ENABLED to False. The default value is True.

Proposal

  • ✨(backend) allow to disable checking unsafe mimetype on attachment upload
@lunika lunika requested review from AntoLC and qbey June 26, 2025 14:18
@lunika lunika self-assigned this Jun 26, 2025
@lunika lunika added the enhancement improve an existing feature label Jun 26, 2025
@lunika lunika force-pushed the feat/docs-safe-attachment branch from 66cc71d to 621e403 Compare June 27, 2025 14:43
@lunika lunika enabled auto-merge (squash) June 27, 2025 14:43
@lunika lunika force-pushed the feat/docs-safe-attachment branch from 621e403 to 63fe0ec Compare June 27, 2025 14:56
@lunika lunika disabled auto-merge June 27, 2025 15:03
@lunika lunika enabled auto-merge (squash) June 27, 2025 15:04
We added the possibility to scan all uploaded files with an anti malware solution. Depending the backend used, we want to give the possibility to check the file mimtype to determine if this one is tagged as unsafe or not. To this you can set the environment variable DOCUMENT_ATTACHMENT_CHECK_UNSAFE_MIME_TYPES_ENABLED to False. The default value is True.
@lunika lunika force-pushed the feat/docs-safe-attachment branch from 63fe0ec to 43b743f Compare June 27, 2025 15:16
@lunika lunika merged commit 45bbffd into main Jun 27, 2025
20 of 21 checks passed
@lunika lunika deleted the feat/docs-safe-attachment branch June 27, 2025 15:31
@AntoLC AntoLC mentioned this pull request Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement improve an existing feature

4 participants