Every audio file must have an unique name but now names are set by user. This can be made by using UUID.
Also users now can now upload ANY file, not just audio files. Validation must be applied to every uploaded file before it would be stored in the storage. Also it would be great to validate size of files 'cause otherwise there will be security hole in form of DOS attacks.
Tasks
[ ] Write filename generation function and somehow deploy it to audio field
[ ] Write file validation code that:
Checks if file is audio file (maybe just header check)
Proposal
Every audio file must have an unique name but now names are set by user. This can be made by using UUID.
Also users now can now upload ANY file, not just audio files. Validation must be applied to every uploaded file before it would be stored in the storage. Also it would be great to validate size of files 'cause otherwise there will be security hole in form of DOS attacks.
Tasks
audio
field