Replies: 1 comment 5 replies
-
There is a bug in that error message and I've proposed #8649 as a fix. However, even with the fix it will still likely say 0 out of 0 bytes. I'd guess, based on the ftpuploadresume example that you linked to, that your application is manually retrieving the existing size, reading the data to append via readfunction and actually requesting an append via CURLOPT_APPEND. I think in this case the upload total is not known by curl, only your application. @bagder seems that example is outdated, if libcurl always issues SIZE? Couldn't that example just use CURLOPT_APPEND, what is the benefit of manually parsing the size and using a read function in that example? |
Beta Was this translation helpful? Give feedback.
{{title}}
{{editor}}'s edit
{{editor}}'s edit
-
Hello
I'm using libcurl to upload files via FTPS. My uploading code is somewhat based on ftpuploadresume.c, progressfunc.c and debugfunc.c examples (I know I need to provide a minimum viable example, but I'm debugging an error that a user of my app has and thus it's a bit complicated).
During the upload, judging from the logs, there's a connection timeout and after that progress function starts receiving
0
asultotal
parameter all of the time. What could be the reason of such behavior? Can it be a server issue or my misuse of libcurl API or libcurl bug?libcurl 7.79 with schannel, Windows 10 x64.
Here are the logs:
Thank you very much for any help.
Taras
Beta Was this translation helpful? Give feedback.
All reactions