Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current code always assumes that the request data is a string (in order to determine the content length). However if you use cURL and want to do a multipart post then the request data must be an array of post fields. Aboviously this will result in a warning being generated due to the string length function being called on the request data.
I attached a patch which checks if the $request->data is a string before determining the content length.
Comment | File | Size | Author |
---|---|---|---|
allow-multipart-post.patch | 549 bytes | freblasty |
Comments
Comment #1
freblasty CreditAttribution: freblasty commentedComment #2
freblasty CreditAttribution: freblasty commentedCould someone look at this issue?
Comment #3
Hugo Wetterberg CreditAttribution: Hugo Wetterberg commentedFixed in 2.4