diff --git a/cmd/serverFunc.go b/cmd/serverFunc.go index e33babf..8b5625f 100644 --- a/cmd/serverFunc.go +++ b/cmd/serverFunc.go @@ -39,7 +39,10 @@ func uploadFile(w http.ResponseWriter, r *http.Request) { log.Printf("Error happened opening file: %v\n", err) } - io.Copy(f, file) + _, err = io.Copy(f, file) + if err != nil { + log.Printf("Error happened writing file: %v\n", err) + } } func server() {