Kyoso-Team / kyoso

A web application that takes osu! tournaments beyonds spreadsheets.
http://kyoso.sh
GNU Affero General Public License v3.0
1 stars 1 forks source link

No longer use the database to store uploads #2

Closed TTTaevas closed 1 year ago

TTTaevas commented 1 year ago

This branch uses bunny.net's storage service to deals with the files the user uploads (it also renames image stuff to upload for clarity as we intend to also store files other than images, such as replays)

TTTaevas commented 1 year ago

With this new commit, we no longer make requests to the storage service for deleting older files, as older files simply get overwritten by the new ones as they share the same name This means that for example that the name of the banner of a team will always be the same, notably making it much easier to show uploaded images on any page

Regarding file extension stuff, I'm assuming the only type of file other than images we'll allow will be osu! replays I'm expecting that in the future, we'll have the files automatically checked before upload, but also that we'll convert images to jpgs, for various reasons

(btw this even looks cleaner here, having all the tournamentLogos together, separated from unrelated files) image