File storage api #15

Closed
opened 2022-09-28 09:25:03 +00:00 by heartles · 3 comments
Owner

Need file storage for:

  • Custom emoji (might be able to get away with treating these as blobs in sql tho)
  • File attachments/images

I quite like misskey's "drive" filesystem approach, and would like to emulate that

Would like to support 2 storage backends, with control over them determined by cluster operator

  • local FS
  • S3-compatible object storage

Thought: should community owners be allowed to use their own S3 storage if they opt into it?
Maybe save for later

Need file storage for: - Custom emoji (might be able to get away with treating these as blobs in sql tho) - File attachments/images I quite like misskey's "drive" filesystem approach, and would like to emulate that Would like to support 2 storage backends, with control over them determined by cluster operator - local FS - S3-compatible object storage Thought: should community owners be allowed to use their own S3 storage if they opt into it? Maybe save for later
heartles added a new dependency 2022-10-13 09:36:44 +00:00
heartles removed a dependency 2022-10-13 09:36:57 +00:00
heartles added this to the v0.0.4 milestone 2022-10-13 10:23:04 +00:00
heartles added the
endpoint
backend
db
labels 2022-10-13 10:23:21 +00:00
heartles self-assigned this 2022-12-03 15:22:16 +00:00
Author
Owner

This is partway done as of 208007c0f7.

The DB schema I don't think will change too much aside from later changes to add different storage backends. I'm gong to split out the storage backend issue into a different issue to work on later.

For this issue:

  • File Uploads
  • Directory creation
  • Directory listing
  • File metadata retrieval
  • File metadata update
  • Moving directories / files
  • Deleting directories / files
  • Create root directories on local user/community creation
This is partway done as of 208007c0f716d7b8847e8fff25972cf7379b0d33. The DB schema I don't think will change too much aside from later changes to add different storage backends. I'm gong to split out the storage backend issue into a different issue to work on later. For this issue: - [x] File Uploads - [x] Directory creation - [x] Directory listing - [x] File metadata retrieval - [x] File metadata update - [x] Moving directories / files - [x] Deleting directories / files - [x] Create root directories on local user/community creation
Author
Owner

Alright. Api is working but responses aren't being returned in the right format

Alright. Api is working but responses aren't being returned in the right format
Author
Owner

finished in 22f2a03

finished in 22f2a03
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: heartles/fediglam#15
No description provided.