8000 show how to send multipart form data without files by sylann · Pull Request #3427 · encode/httpx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

show how to send multipart form data without files #3427

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sylann
Copy link
@sylann sylann commented Nov 29, 2024

Summary

As it is, the documentation hints at the possibility of sending a request with a multipart form encoded body, but it is not explicit about it.

Hence it takes more time to figure it out on your own, especially for a less experienced developer.

This PR only adds 1 example in the multipart section of the quickstart page to demonstrate the process.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. Not applicable (only changed documentation)
  • I've updated the documentation accordingly.

As it is, the documentation hints at the possibility but it is not explicit. Hence it takes more time to figure it out on your own, especially for a less experienced developer.
@sylann
Copy link
Author
sylann commented Nov 29, 2024

I only have a doubt on the section title and the small sentence before the example does not mention that the example makes use of the files param instead of the data param.

Could improve this if needed.

@ujayant
Copy link
ujayant commented Jun 1, 2025

@sylann I see this error when I try to use your example - chunk = self.file.read(self.CHUNK_SIZE) AttributeError: 'dict' object has no attribute 'read'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0