summaryrefslogtreecommitdiff
path: root/system/admin/upload/upload.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-10 09:45:17 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-10 09:45:17 -0800
commit5e120ac4d5f6e8c53e5828df6640b20dc5862faa (patch)
treedd22241be556cc51eeb7aab2abdd60a1156034c4 /system/admin/upload/upload.go
parentd5b31987a05df02cf4129e8603f2304b191e0834 (diff)
adding initial support for third-party addons and the basic framework for how they are registered by the system
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 323f371..486f55c 100644
--- a/system/admin/upload/upload.go
+++ b/system/admin/upload/upload.go
@@ -14,7 +14,7 @@ import (
func StoreFiles(req *http.Request) (map[string]string, error) {
err := req.ParseMultipartForm(1024 * 1024 * 4) // maxMemory 4MB
if err != nil {
- return nil, fmt.Errorf("%s", err)
+ return nil, err
}
ts := req.FormValue("timestamp") // timestamp in milliseconds since unix epoch