We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error when submitting a multipart/form-data form without any data
multipart/form-data
Minimal Reproducible Example
@rt("/") def home(): return Form(Input(name="a", type="checkbox"), Button("Submit"), hx_post="/process") @rt def process(x: dict): return f"Check box is {x.get('a', 'off')}"
Click on submit (without ticking the checkbox)
multipart.exceptions.MultipartParseError: Did not find CR at end of boundary
Workaround: Change Form.enctype
Form.enctype
Form(..., enctype="")
Environment Information
Confirmation Please confirm the following:
The text was updated successfully, but these errors were encountered:
9161779
fixes AnswerDotAI#405
4de8f1f
No branches or pull requests
Error when submitting a
multipart/form-data
form without any dataMinimal Reproducible Example
Click on submit (without ticking the checkbox)
Workaround: Change
Form.enctype
Environment Information
Confirmation
Please confirm the following:
The text was updated successfully, but these errors were encountered: