Skip to content

upload example has a typo #17138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
0-wiz-0 opened this issue Apr 22, 2025 · 0 comments
Closed

upload example has a typo #17138

0-wiz-0 opened this issue Apr 22, 2025 · 0 comments

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Apr 22, 2025

Specify which documentation you found a problem with

The documentation for Upload data to a remote site in the tutorial at https://curl.se/libcurl/c/libcurl-tutorial.html is confusing

The problem

Where bufptr is the pointer to a buffer we fill in with data to upload and sizenitems* is the size of the buffer and therefore also the maximum amount of data we can return to libcurl in this call. The userp pointer is the custom pointer we set to point to a struct of ours to pass private data between the application and the callback. 

I don't understand sizenitems*. Should that be nitems * size?

bagder added a commit that referenced this issue Apr 23, 2025
@bagder bagder closed this as completed in 9c59a6a Apr 23, 2025
nbaws pushed a commit to nbaws/curl that referenced this issue Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant