summaryrefslogtreecommitdiff
path: root/system/admin/upload
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-17 12:08:44 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-17 12:08:44 -0700
commit95c2a9754403737e1c6a3b5e0ff0e22ff060db11 (patch)
tree60e01629d3ccd7f62b8f2cdfc4910bcb9684358f /system/admin/upload
parentc7f017af059d7838ba9bc6d369bdedd43d45ea5b (diff)
fix ineffassign and spelling errors
Diffstat (limited to 'system/admin/upload')
-rw-r--r--system/admin/upload/upload.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/admin/upload/upload.go b/system/admin/upload/upload.go
index 1a594f8..dbcdc17 100644
--- a/system/admin/upload/upload.go
+++ b/system/admin/upload/upload.go
@@ -51,6 +51,9 @@ func StoreFiles(req *http.Request) (map[string]string, error) {
uploadDir := filepath.Join(pwd, uploadDirName, fmt.Sprintf("%d", tm.Year()), fmt.Sprintf("%02d", tm.Month()))
err = os.MkdirAll(uploadDir, os.ModeDir|os.ModePerm)
+ if err != nil {
+ return nil, err
+ }
// loop over all files and save them to disk
for name, fds := range req.MultipartForm.File {