summaryrefslogtreecommitdiff
path: root/system/admin/upload/upload.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-29 14:39:35 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-29 14:39:35 -0700
commita48ed8dc7f7ddb3ddbc8ea54ad0b0d2feb7c87f0 (patch)
treea9b29cab1d50909b9aae7653d92651a0815f71f7 /system/admin/upload/upload.go
parent7ecfc3ac37f3a00522dd486f4b7e7e7c1850de47 (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.go2
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)
}