mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
![]() 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. |
||
---|---|---|
.. | ||
tests | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
curl.stub.php | ||
curl_arginfo.h | ||
curl_file.c | ||
curl_file.stub.php | ||
curl_file_arginfo.h | ||
curl_private.h | ||
interface.c | ||
multi.c | ||
php_curl.h | ||
share.c | ||
sync-constants.php |