Add the epub extension

This commit is contained in:
Las Zenow 2013-04-23 01:04:06 +02:00
parent 206775fa6a
commit 67c90e8096

View file

@ -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