Skip to content
Permalink
Browse files

Refactor javascript and fix upload

  • Loading branch information
PatWie committed Dec 25, 2019
1 parent 3bff3ac commit 5c25664d4ae7c71b1001110f606dae78f4057569
Showing with 401 additions and 243 deletions.
  1. +1 −0 sheets.go
  2. +400 −243 static/js/main.js
@@ -50,6 +50,7 @@ func UploadSheet(sheetDir string) func(http.ResponseWriter, *http.Request) {
w.WriteHeader(http.StatusOK)
}
defer f.Close()
clientFile.Seek(0, io.SeekStart)
io.Copy(f, clientFile)
} else {
w.WriteHeader(http.StatusBadRequest)

0 comments on commit 5c25664

Please sign in to comment.
You can’t perform that action at this time.