« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for avatar (0.001 sec.)
Yaf_Request_Abstract::getFiles — Fetch uploaded files | PHP 8.3 9414
Yaf_Request_Abstract::getFiles (Yaf >=3.2.2) Yaf_Request_Abstract::getFiles — Fetch uploaded files 説明 public function Yaf_Request_Abstract::getFiles ( string $name = ? , mixed $default = ? ): mixed Retrieves a variable from $_FILES. パラメ ... dController extends Yaf_Controller_Abstract { public function saveAction () { $file = $this -> getRequest ()-> getFiles ( "avatar" ); if ( is_array ( $file ) && $file [ "error" ] === UPLOAD_ERR_OK ) { move_uploaded_file ( $file [ "tmp_name" ], "/var/ww ... xtends Yaf_Controller_Abstract { public function saveAction () { // Assuming a file was uploaded with the form field name "avatar" var_dump ( $this -> getRequest ()-> getFiles ( "avatar" )); } } ?> 上の例の出力は、 たとえば以下のようになります。 array( ...
https://man.mtool.work/php/8.3/yaf-request-abstract.getfiles.html
PREV 1 NEXT