Discuss about plugins that don't have a dedicated forum
fingus
Posts: 269 Joined: Fri Sep 16, 2011 9:53 am
Post
by fingus » Tue Mar 08, 2022 8:32 am
While Download from my WebDAV-Resource is working with this:
Upload doesn´t:
fingus
Posts: 269 Joined: Fri Sep 16, 2011 9:53 am
Post
by fingus » Fri Mar 11, 2022 11:39 am
With this example-code taken from this Forum its working:
Function p_ReadFunc(len)
If rlen + len > flen Then len = flen - rlen
If len > 0
rlen = rlen + len
Return(ReadBytes(1, len))
Else
Return("")
EndIf
EndFunction
usr$ = StringRequest("", "User?")
pwd$ = StringRequest("", "Password?")
f$ = FileRequest("Select file")
OpenFile(1, f$)
flen = FileLength(1)
e = hurl.Easy({url = "
https://mydomain.org:5006/path/to/pictures/ " .. FilePart(f$), username = usr$, password = pwd$, ReadFunction = p_ReadFunc, upload = 1, infilesize = flen})
e:perform()
e:close()
CloseFile(1)
airsoftsoftwair
Posts: 5443 Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:
Post
by airsoftsoftwair » Fri Mar 18, 2022 7:56 pm
Hmm, I'd need an
MCVE to debug this but it's probably difficult because your WebDAV server is private, isn't it?
fingus
Posts: 269 Joined: Fri Sep 16, 2011 9:53 am
Post
by fingus » Fri Mar 18, 2022 9:40 pm
airsoftsoftwair wrote: ↑ Fri Mar 18, 2022 7:56 pm
Hmm, I'd need an
MCVE to debug this but it's probably difficult because your WebDAV server is private, isn't it?
E-Mail send!
airsoftsoftwair
Posts: 5443 Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:
Post
by airsoftsoftwair » Fri Jun 17, 2022 9:20 pm
As described in my mail from April 16th, I can't reproduce the problem so it was probably caused by an older hURL version that you had installed.