audiodude / rainfall

Bandcamp exodus solution, letting you create personal artist sites using Faircamp
https://rainfall.dev
MIT License
12 stars 0 forks source link

Handle files with the same name being uploaded #6

Closed audiodude closed 11 months ago

audiodude commented 1 year ago

We have a couple of options:

  1. Reject the entire upload and raise an error that a file with the same name already exists
  2. Keep the rest of the upload, but warn that the file with the same name was not replaced
  3. Keep the duplicate file and rename it my_song_1.mp3 (or my_song_2.mp3 etc). Works well if we're allowing users to delete files like in #3

I think 3 is the best, but it depends on fixing #3