CURLFile 锟斤拷

(PHP 5 >= 5.5.0, PHP 7)

锟斤拷锟�

CURLFile 应锟斤拷锟斤拷选锟斤拷 CURLOPT_POSTFIELDS 一同使锟斤拷锟斤拷锟斤拷锟较达拷锟侥硷拷锟斤拷

锟斤拷摘要

CURLFile {
/* 锟斤拷锟斤拷 */
public $name ;
public $mime ;
public $postname ;
/* 锟斤拷锟斤拷 */
public __construct ( string $filename [, string $mimetype [, string $postname ]] )
public getFilename ( void ) : string
public getMimeType ( void ) : string
public getPostFilename ( void ) : string
public setMimeType ( string $mime ) : void
public setPostFilename ( string $postname ) : void
public __wakeup ( void ) : void
}

锟斤拷锟斤拷

name

锟斤拷锟较达拷锟侥硷拷锟斤拷锟斤拷锟斤拷

mime

锟侥硷拷锟斤拷 MIME type锟斤拷默锟斤拷锟斤拷application/octet-stream锟斤拷锟斤拷

postname

锟较达拷锟斤拷锟斤拷锟叫碉拷锟侥硷拷锟斤拷锟狡o拷默锟斤拷为锟斤拷锟斤拷 name 锟斤拷锟斤拷

锟轿硷拷

Table of Contents