The CURLStringFile class
CURLStringFile makes it possible to upload a file directly from a variable. This is similar to CURLFile, but works with the contents of the file, not filename. This class or CURLFile should be used to upload the contents of the file with CURLOPT_POSTFIELDS.
Intro
CURLStringFile makes it possible to upload a file directly from a variable. This is similar to CURLFile, but works with the contents of the file, not filename. This class or CURLFile should be used to upload the contents of the file with CURLOPT_POSTFIELDS.
Class synopsis
Properties
dataThe contents to be uploaded.
postnameThe name of the file to be used in the upload data.
mimeMIME type of the file (default is
application/octet-stream).
See Also
curl_setopt()CURLFile
Curlstringfile