diff --git a/upload.go b/upload.go index b55b498..7e7fc88 100644 --- a/upload.go +++ b/upload.go @@ -33,7 +33,7 @@ func uploadPostHandler(w http.ResponseWriter, r *http.Request, sess *Session) { book := parseFile(epub) title, _ := book["title"].(string) file.Seek(0, 0) - id, err := StoreNewFile(title, file) + id, err := StoreNewFile(title+".epub", file) if err != nil { log.Println("Error storing book (", title, "):", err) continue