-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] allow upload in form to be transfer-encoded with base64 #49315
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
Comments
Would you consider a PR to the |
I'm trying but it's hard to work around that internal design >_< |
Thank you for this suggestion. |
Could I get an answer? If I do not hear anything I will assume this issue is resolved or abandoned. Please get back to me <3 |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
Reopening because the related PR #49587 is still open. |
Description
I wanted to use HttpClient to upload a file alongside other fields. But i needed the file uploading part to be
Content-Transfer-Encoding: base64
*. When i followed the docs https://symfony.com/doc/current/http_client.html#uploading-data i could see that my data-part starts out with encoding base64. But when added to a form it is forced to be 8bit / binary. See:https://github.com/symfony/symfony/blob/6.2/src/Symfony/Component/Mime/Part/Multipart/FormDataPart.php#L105
I don't know if the transfer encoding is allowed by MIME but NodeJS Multiparty seems to understand it.
Example
This does not work because the new mixed part generates a new random boundary.
The text was updated successfully, but these errors were encountered: