-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Uploading a large file to a writeable gateway using POST does not work #4601
Comments
Also, in the ipfs daemon log you get:
|
Also, using the multipart/form-data according to RFC2388 (option |
I'm able to reproduce this, it looks like the sharness tests for writable gateway don't check if the hash matches with what |
I appear to be seeing the same issue still when using libcurl through a C++ program. |
Has this already been addressed? Is the issue here the handling of binary data by curl? I think you have to specify
Note the incorrect Content-Length header and compare with:
which is the correct hash:
I think the sharness test is correct incidentally. |
@eingenito is correct. Encoding is the issue. |
Note: I'm improving the tests in #6539. |
Version information:
Type:
Bug
Severity:
High
Description:
Adding a large file to a writeable IPFS gateway using HTTP POST does not work. This seems to be due to the fact that curl is chunking the upload. Either curl is not properly producing a chunked upload, or ipfs is not properly handling it. Given that curl is very widely used and as old as the hills, I suspect that ipfs is to blame.
From the ipfs error log, we get this error:
ERROR commands/h: err: multipart: NextPart: unexpected EOF handler.go:285
Steps to reproduce:
The text was updated successfully, but these errors were encountered: