downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpRequest::addPutData> <HttpRequest::addPostFields
[edit] Last updated: Fri, 25 May 2012

view this page in

HttpRequest::addPostFile

(PECL pecl_http >= 0.10.0)

HttpRequest::addPostFilePOST ファイルを追加する

説明

public bool HttpRequest::addPostFile ( string $name , string $file [, string $content_type = "application/x-octetstream" ] )

ファイルを POST リクエストに追加します。事前に設定されているファイルは変更されません。

POST およびカスタムリクエストについてのみ影響します。 生の POST データには使用できません。

パラメータ

name

フォーム要素の名前。

file

ファイルへのパス。

content_type

ファイルの content type。

返り値

成功した場合に TRUE を返します。 content type にプライマリパート、セカンダリパートが含まれていない場合に FALSE を返します。



add a note add a note User Contributed Notes HttpRequest::addPostFile
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites