« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for UploadController (0.000 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. パラメ ... 戻り値 The uploaded files array, or default if it is not set. 例 例1 Yaf_Request_Abstract::getFiles() example <?php class UploadController extends Yaf_Controller_Abstract { public function saveAction () { $file = $this -> getRequest ()-> getFiles ( "avatar" ); ... ], "/var/www/uploads/" . basename ( $file [ "name" ]) ); } } } ?> 例2 Yaf_Request_Abstract::getFiles() example <?php class UploadController extends Yaf_Controller_Abstract { public function saveAction () { // Assuming a file was uploaded with the form field name ...
https://man.mtool.work/php/8.3/yaf-request-abstract.getfiles.html
PREV 1 NEXT