From 21b9f301c5e1305c3be4e260161d2495bca059de Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 12 Jan 2017 16:19:00 -0800 Subject: [addons] Expanding basic addon framework (#29) --- system/admin/upload/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/admin/upload') 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 -- cgit v1.2.3