freesound icon indicating copy to clipboard operation
freesound copied to clipboard

Move sound files elsewhere when deleting a sound

Open ffont opened this issue 6 years ago • 0 comments

Currently when we delete a sound individually we create a DeletedSound object but keep all related files (audio files, previews, etc). We should give a new treatment to those files to that:

  • Files are stored in a different location and are not statically served by nginx (this basically applies to previews and displays). Then we should add a locations method to DeletedSound so that we can easily get the paths for the files corresponding to deleted sounds.
  • When the reason for deleting a sound is that it is illegal, files should be completely deleted from our servers.
  • Make sure files in the new location are correctly mirrored if mirroring option is on.

This should be done after #1383 as otherwise we don't have deletion reason information.

ffont avatar Sep 27 '19 13:09 ffont