Commit 75c4768c authored by ale's avatar ale

create temporary files in the storage area

parent 5be78cfe
......@@ -503,7 +503,7 @@ func (c *ComicsDB) uploadHandler(w http.ResponseWriter, r *http.Request) {
}
// Copy the input to a temporary file.
tmpf, err := ioutil.TempFile("", "comics_upload_")
tmpf, err := c.files.TempFile("comics_upload_")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment