Closed TTTaevas closed 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)
This branch uses bunny.net's storage service to deals with the files the user uploads (it also renames
image
stuff toupload
for clarity as we intend to also store files other than images, such as replays)