summaryrefslogtreecommitdiffstats
path: root/models/upload.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/upload.go')
-rw-r--r--models/upload.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/upload.go b/models/upload.go
index c3719368f3..21c73a43f7 100644
--- a/models/upload.go
+++ b/models/upload.go
@@ -14,7 +14,7 @@ import (
"code.gitea.io/gitea/modules/setting"
- gouuid "github.com/satori/go.uuid"
+ gouuid "github.com/google/uuid"
"github.com/unknwon/com"
)
@@ -46,7 +46,7 @@ func (upload *Upload) LocalPath() string {
// NewUpload creates a new upload object.
func NewUpload(name string, buf []byte, file multipart.File) (_ *Upload, err error) {
upload := &Upload{
- UUID: gouuid.NewV4().String(),
+ UUID: gouuid.New().String(),
Name: name,
}