Improvements #2

Merged
raul merged 10 commits from testing into main 2024-05-30 08:09:07 +02:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 3ebe2ab765 - Show all commits

View File

@ -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() {