Refactor the admin/store code
This commit is contained in:
parent
85111946ed
commit
2e043af31a
3 changed files with 24 additions and 14 deletions
|
@ -18,7 +18,7 @@ func storeFiles(r *http.Request) ([]string, error) {
|
|||
}
|
||||
defer file.Close()
|
||||
|
||||
path, err := StoreFile(f.Filename, file)
|
||||
path, err := StoreNewFile(f.Filename, file)
|
||||
if err != nil {
|
||||
return paths, err
|
||||
}
|
||||
|
|
Reference in a new issue