Version
v7.6.1
Deployment Method
Docker Compose
Database Type
SQLite (default)
Bug Description
The feature:
Media deduplication — Symlinks identical files to save disk space
Does not prevent downloading an identical file
For example, if a video file is sent once as a streaming file and once as an MP4 file, then in the end the files downloaded are exactly the same (I did a test with SHA256) but they take up disk space for each of them.
Expected Behavior
When a file is identical in terms of its SHA then we need to prevent its download if it is identical to an existing file to save space
I understand that the download is caused because the message ID is different but it is not space saving.
Steps to Reproduce
- Send the same file to the chat once as a streaming file (full quality) and once as a
Save for this chat.
Result: 2 files are exactly the same but have different message IDs
Logs
Environment
DEDUPLICATE_MEDIA=true
Checklist
Version
v7.6.1
Deployment Method
Docker Compose
Database Type
SQLite (default)
Bug Description
The feature:
Media deduplication — Symlinks identical files to save disk spaceDoes not prevent downloading an identical file
For example, if a video file is sent once as a streaming file and once as an MP4 file, then in the end the files downloaded are exactly the same (I did a test with SHA256) but they take up disk space for each of them.
Expected Behavior
When a file is identical in terms of its SHA then we need to prevent its download if it is identical to an existing file to save space
I understand that the download is caused because the message ID is different but it is not space saving.
Steps to Reproduce
Save for this chat.
Result: 2 files are exactly the same but have different message IDs
Logs
Environment
DEDUPLICATE_MEDIA=true
Checklist