Hello Collaborators,
during testing current version of gowebdav I notice that client's method WriteStream does not set request body even if body should be set for current request (for example during uploading non-empty file via gowebdav.exe -X PUT /my_folder/file.txt file.txt). Also, @chuckwagoncomputing face with this problem too, but he used propfind request instead.
build gowebdav/cmd/gowebdav with go build to get gowebdav.exe
set following environment's variables:
ROOT -- WebDav Server's URL
USER -- WebDav Server's username
PASSWORD -- WebDav Server's password
suppose your WebDav Server's folder is my_folder, and your local file to upload located near gowebdav.exe, named file.txt and has some text (so actually file's size is not zero).
run following command: gowebdav.exe -X PUT /my_folder/file.txt file.txt
go to your WebDav Server via any other interface (putty, web browser etc), and you will see that file is exist but file's size is zero
Hello Collaborators, during testing current version of
gowebdav
I notice that client's methodWriteStream
does not set request body even if body should be set for current request (for example during uploading non-empty file viagowebdav.exe -X PUT /my_folder/file.txt file.txt
). Also, @chuckwagoncomputing face with this problem too, but he usedpropfind
request instead.Software
master
is 008b27eTo Reproduce
gowebdav/cmd/gowebdav
withgo build
to getgowebdav.exe
ROOT
-- WebDav Server's URLUSER
-- WebDav Server's usernamePASSWORD
-- WebDav Server's passwordmy_folder
, and your local file to upload located neargowebdav.exe
, namedfile.txt
and has some text (so actually file's size is not zero).gowebdav.exe -X PUT /my_folder/file.txt file.txt
putty
,web browser
etc), and you will see that file is exist but file's size is zeroExpected Uploaded file contains body
Actually Uploaded file does not contains body