コード例 #1
0
ファイル: UploadController.php プロジェクト: karwana/penelope
 public static function move($temp_path, $original_name)
 {
     // Unless there's a security vulnerability being exploited, this method would only ever be used to move an uploaded file. Otherwise `File::store` would be used explicitly.
     if (!is_uploaded_file($temp_path)) {
         throw new \RuntimeException('Only uploaded files may be moved.');
     }
     return File::store($temp_path, $original_name);
 }