fix: file uploads with same file names replacing previous files, switches to uuids for stored filenames.

- minor refactor and fixes.
This commit is contained in:
Abhinav Raut
2024-10-10 02:57:44 +05:30
parent 844dbf1e9d
commit 7e15995048
25 changed files with 147 additions and 187 deletions

1
go.mod
View File

@@ -8,6 +8,7 @@ require (
github.com/disintegration/imaging v1.6.2
github.com/emersion/go-imap/v2 v2.0.0-beta.3
github.com/fasthttp/websocket v1.5.9
github.com/google/uuid v1.6.0
github.com/jhillyerd/enmime v1.2.0
github.com/jmoiron/sqlx v1.4.0
github.com/k3a/html2text v1.2.1