Skip to content

Conversation

@Pavel910
Copy link
Collaborator

@Pavel910 Pavel910 commented Jan 13, 2026

Changes

This PR improves file organization in the file manager S3 bucket. Previously, all files were stored in the root of the bucket, with the file id as a path prefix. You couldn't tell which S3 object belongs to which tenant by simply looking at the bucket.

Now we have a tenants folder, and then a subfolder for each tenant (see screenshots).

The file URL remains the same, e.g.: /files/6966d46bf2d4bb0002595006/image-1.jpg. We extract the id from the URL, and perform a simple key-value DB lookup (using the new GlobalKeyValueStore abstraction), to fetch file metadata required for routing.

CleanShot 2026-01-14 at 00 52 51 CleanShot 2026-01-14 at 00 53 51

How Has This Been Tested?

Manually.

@Pavel910 Pavel910 added this to the 6.0.0 milestone Jan 13, 2026
@Pavel910 Pavel910 self-assigned this Jan 13, 2026
@Pavel910 Pavel910 merged commit b011377 into next Jan 14, 2026
18 checks passed
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