From 5e120ac4d5f6e8c53e5828df6640b20dc5862faa Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 10 Jan 2017 09:45:17 -0800 Subject: adding initial support for third-party addons and the basic framework for how they are registered by the system --- 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