linto-ai / linto-stt

An automatic speech recognition API
GNU Affero General Public License v3.0
38 stars 14 forks source link

🔒 Change the filename to something generated by the application #4

Closed jbleduigou closed 3 years ago

jbleduigou commented 3 years ago

As mentioned in the OWASP File Upload Cheat Sheet, it is a good practice to change the filename to something generated by the application. In this PR the generated filename is a UUID.

See also: https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html

irebai commented 3 years ago

Thank you for your recommendation. Indeed, a generated filename using uuid is now applied when processing the audio file. Please, pull the new changes!