diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 64b2703..fa9a36c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,9 @@
-
+
-
+
@@ -70,7 +70,8 @@
-
+
+
true
diff --git a/pkg/services/attachments.go b/pkg/services/attachments.go
index 4cd7785..17dd51f 100644
--- a/pkg/services/attachments.go
+++ b/pkg/services/attachments.go
@@ -50,6 +50,7 @@ func NewAttachmentMetadata(tx *gorm.DB, user models.Account, file *multipart.Fil
linked = true
attachment = exists
attachment.ID = 0
+ attachment.Uuid = uuid.NewString()
attachment.AccountID = user.ID
} else {
// Upload the new file