(PHP 5 >= 5.5.0, PHP 7)
CURLFile should be used to upload a file with
CURLOPT_POSTFIELDS
.
Name of the file to be uploaded.
MIME type of the file (default is application/octet-stream
).
The name of the file in the upload data (defaults to the name property).