-
Notifications
You must be signed in to change notification settings - Fork 39
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
Sending file from a multipart stream #127
Comments
Can you show us some minimal code here and also how you run it? |
Also, do you have the involved |
@fbourigault it's line 42 |
You can put this code inside a symfony controller you should have the error. |
You are using the CurlClient. It is super fast but also very strict. You have forgotten to add a content-length header. You could use the Content-Length plugin to fix this. |
The issue is about using the |
Guzzle psr7. I tried the code with curl - fail But I might be wrong. |
I tried without Symfony and without any client. It worked! I also have the |
I'm using guzzle with the symfony integration here is my configuration :
each of my clients use My issue is only present when the profiler is enabled, the for a quick workaround i've disable the profile plugin and everything work fine |
Which plugins are you using? |
I'm using 3 plugins:
|
This has been fixed in php-http/message#94 |
Actual Behavior
I'm sending some files with a multipart api endpoint, i've followed the doc (http://php-http.readthedocs.io/en/latest/components/multipart-stream-builder.html).
When the profiler is enabled i got this error
Error: escapeshellarg(): Input string contains NULL bytes
from theCurlCommandFormatter.php
Expected Behavior
no error
Steps to Reproduce
i've followed the documentation here : http://php-http.readthedocs.io/en/latest/components/multipart-stream-builder.html
The text was updated successfully, but these errors were encountered: