This pull request fixes an error that even if util.FilterFilename return an error, the application writes it to the database
Follow the flow to reproduce the error
upload file with name Arquitetura Limpa - O Guia do Artesão para Estrutura e Design de Software (Robert C. Martin) (Z-Library).pdf guive an error
But even so, it still registers in the database
If I try to delete it, an error occurs.
However, even with the error, it still gets deleted from the database (requires refreshing the page).
With the current state of this pull request, the issue is resolved. However, we need to investigate why the util.FilterFilename function returned an error for the file name. If necessary, we may have to make modifications to the util.FilterFilename function. Additionally, we need to look into why step 3 returned an error when I clicked delete. Nonetheless, in step 4, after refreshing the page, the data was deleted from the database despite the error.
This pull request fixes an error that even if
util.FilterFilename
return an error, the application writes it to the databaseFollow the flow to reproduce the error
upload file with name![image](https://github.com/kevinanielsen/go-fast-cdn/assets/87894998/bd0f8d38-c21a-4e1b-be63-7d246e876b21)
Arquitetura Limpa - O Guia do Artesão para Estrutura e Design de Software (Robert C. Martin) (Z-Library).pdf
guive an errorBut even so, it still registers in the database![image](https://github.com/kevinanielsen/go-fast-cdn/assets/87894998/127f689c-f8c4-4e1b-bef0-cc7b326d23cc)
If I try to delete it, an error occurs.![image](https://github.com/kevinanielsen/go-fast-cdn/assets/87894998/a86260fb-8602-4e3b-af2f-07370cf37fcf)
However, even with the error, it still gets deleted from the database (requires refreshing the page).![image](https://github.com/kevinanielsen/go-fast-cdn/assets/87894998/414bd2b7-5a13-4838-8bba-42e8dc4aeb29)
With the current state of this pull request, the issue is resolved. However, we need to investigate why the util.FilterFilename function returned an error for the file name. If necessary, we may have to make modifications to the util.FilterFilename function. Additionally, we need to look into why step 3 returned an error when I clicked delete. Nonetheless, in step 4, after refreshing the page, the data was deleted from the database despite the error.