element-hq / element-hq/synapse

Synapse uploads thumbnail data to S3

Open
#5,411 0 comments 0 reactions 0 assignees View on GitHub
A-Media-Repository T-Enhancement z-p2
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#5411](https://github.com/matrix-org/synapse/issues/5411).

---

### Description

Synapse uploads not only local media but also URL cache (including thumbnails for both local media and URL previews). It shouldn't because this data is either temporary or can be generated locally without wasting money on S3 requests and storage.

### Steps to reproduce

- enable S3 storage provider
- open the S3 bucket in AWS console
- see redundant directories like `url_cache`, `url_cache_thumbnails`, `local_thumbnails`

I expect to only have `local_content` there (optionally `remote_content` if enabled in the config).

### Version information

- **Homeserver**:

Own server

- **Version**:

0.99.2

- **Install method**:

From apt repo

- **Platform**:

Debian 9.9 amd64

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.