Using epubgo to handle epubs
This commit is contained in:
parent
d46c3b72b6
commit
d994d6b91f
6 changed files with 167 additions and 108 deletions
|
@ -44,7 +44,7 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) {
|
|||
title, err := ParseFile(path)
|
||||
if err != nil {
|
||||
os.Remove(NEW_PATH + path)
|
||||
sess.Notify("Problem uploading!", "The file '"+path+"' is not a well formed epub", "error")
|
||||
sess.Notify("Problem uploading!", "The file '"+path+"' is not a well formed epub: "+err.Error(), "error")
|
||||
} else {
|
||||
uploaded = uploaded + " '" + title + "'"
|
||||
}
|
||||
|
|
Reference in a new issue