diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-29 17:52:26 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-29 17:52:26 -0700 |
commit | 391229f645225d958dda3c6d7846443ee27511b6 (patch) | |
tree | 29e022f82551a4a6ec26aa5de5776c1c5970f396 | |
parent | ca6c0ad73b37a1e77fafc0a8dede5207fed504d1 (diff) |
renaming and exporting upload file func
-rw-r--r-- | system/admin/upload.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/admin/upload.go b/system/admin/upload.go index 7f2a4fa..3f61765 100644 --- a/system/admin/upload.go +++ b/system/admin/upload.go @@ -10,7 +10,8 @@ import ( "time" ) -func storeFileUploads(req *http.Request) (map[string]string, error) { +// StoreFileUploads stores file uploads at paths like /YYYY/MM/filename.ext +func StoreFileUploads(req *http.Request) (map[string]string, error) { err := req.ParseMultipartForm(1024 * 1024 * 4) // maxMemory 4MB if err != nil { return nil, fmt.Errorf("%s", err) |