CURLFile (class)
介绍
(PHP 5 >= 5.5.0, PHP 7)
CURLFile应该用来上传文件CURLOPT_POSTFIELDS
。
类简介
CURLFile {
/* Properties */
public $name ;
public $mime ;
public $postname ;
/* Methods */
public __construct ( string $filename [, string $mimetype [, string $postname ]] )
public string getFilename ( void )
public string getMimeType ( void )
public string getPostFilename ( void )
public void setMimeType ( string $mime )
public void setPostFilename ( string $postname )
public void __wakeup ( void )
}
属性
name
要上传的文件的名称。
mime
文件的MIME类型(默认为application / octet-stream)。
postname
上传数据中文件的名称(默认为名称属性)。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com