diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-04-29 14:39:35 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-04-29 14:39:35 -0700 |
commit | a48ed8dc7f7ddb3ddbc8ea54ad0b0d2feb7c87f0 (patch) | |
tree | a9b29cab1d50909b9aae7653d92651a0815f71f7 /system/admin/upload/upload.go | |
parent | 7ecfc3ac37f3a00522dd486f4b7e7e7c1850de47 (diff) |
fmt bytes to readable and update setupload logic to allow edits
Diffstat (limited to 'system/admin/upload/upload.go')
-rw-r--r-- | system/admin/upload/upload.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/upload/upload.go b/system/admin/upload/upload.go index 35fb8f9..a0568e4 100644 --- a/system/admin/upload/upload.go +++ b/system/admin/upload/upload.go @@ -115,7 +115,7 @@ func storeFileInfo(size int64, filename, urlPath string, fds []*multipart.FileHe "content_length": []string{fmt.Sprintf("%d", size)}, } - err := db.SetUpload(data) + _, err := db.SetUpload("__uploads:-1", data) if err != nil { log.Println("Error saving file upload record to database:", err) } |