diff options
author | Vika <vika@fireburn.ru> | 2022-07-21 13:03:37 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-07-21 13:03:37 +0300 |
commit | ecdb6c7db16406a20b56e7bb6e73d4c59ee246f1 (patch) | |
tree | e7ca0e8183ddb3dbcade87914c81aeb019389f52 /kittybox-rs/companion-lite | |
parent | 2dcd143a9855370da65d76e1d7ba2b93b61f8b9f (diff) | |
download | kittybox-ecdb6c7db16406a20b56e7bb6e73d4c59ee246f1.tar.zst |
media: improve Metadata typing
content_type is now optional; if not specified, it will remain empty. `application/octet-stream` will be put on read in the frontend. Length is now represented as NonZeroUsize - why would you upload a zero-byte file when you can just conjure one from the void whenever you need one? This should save me a little bit of memory. Representing content_type as a typed MIME value would be the next logical step.
Diffstat (limited to 'kittybox-rs/companion-lite')
0 files changed, 0 insertions, 0 deletions