Don't hardcode paths

This commit is contained in:
Las Zenow 2013-03-03 02:39:25 +01:00
parent 15614a147c
commit 66a4a2de4c

View file

@ -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[len("new/"):]+"' is not a well formed epub", "error")
sess.Notify("Problem uploading!", "The file '"+path+"' is not a well formed epub", "error")
} else {
uploaded = uploaded + " '" + title + "'"
}