diff options
author | Steve <nilslice@gmail.com> | 2017-01-12 16:19:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 16:19:00 -0800 |
commit | 21b9f301c5e1305c3be4e260161d2495bca059de (patch) | |
tree | 3be88e282bb9801b5b0354f89c5fe127996b0b6a /system/admin/upload/upload.go | |
parent | ad96d5fa100615ada7ae8f06e75088f9297122fd (diff) |
[addons] Expanding basic addon framework (#29)
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 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 |