diff --git a/server/server/commands.go b/server/server/commands.go index 898f5df..54d5984 100644 --- a/server/server/commands.go +++ b/server/server/commands.go @@ -53,7 +53,7 @@ func UploadFile(c Client) (string, error) { log.Println(c.Connection().RemoteAddr().String() + " has reached timeout!") break } - f.WriteString(input.Text() + "\n") + f.Write(input.Bytes()) } return filename, nil