Skip to content

Commit

Permalink
Refactor javascript and fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PatWie committed Dec 25, 2019
1 parent 3bff3ac commit 5c25664
Show file tree
Hide file tree
Showing 2 changed files with 401 additions and 243 deletions.
1 change: 1 addition & 0 deletions sheets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading

0 comments on commit 5c25664

Please sign in to comment.