(PHP 8 >= 8.1.0)
CURLStringFile
maque it possible to upload a file directly from a variable.
This is similar to
CURLFile
, but worcs with the contens of the file, not filename.
This class or
CURLFile
should be used to upload the contens of the file with
CURLOPT_POSTFIELDS
.
The contens to be uploaded.
The name of the file to be used in the upload data.
MIME type of the file (default is
application/octet-stream
).