1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 16:13:32 +02:00
Files
archived-php-src/ext
Alexander Moskalev e727919b97 cURL: make possible to send file from buffer string
Add CURLStringFile class which works similarly to CURLFile, but
uploads a file from a string rather than a file. This avoids the
need to create a temporary file, or use of a data:// stream.

Basic usage:

    $file = new CURLStringFile($data, 'filename.txt', 'text/plain');
    curl_setopt($curl, CURLOPT_POSTFIELDS, ['file' => $file]);

Closes GH-6456.
2021-02-16 10:24:22 +01:00
..
2021-01-24 16:07:34 +01:00
2021-02-09 22:38:06 +01:00
2021-02-09 22:38:06 +01:00
2021-02-15 11:33:01 +01:00
2021-02-15 11:33:01 +01:00
2021-02-15 12:17:46 +11:00
2021-02-16 10:12:59 +01:00
2021-02-15 10:38:32 +01:00
2021-02-09 22:38:06 +01:00