Code Context );
header("Content-type: " . $contentsMaping[$ext]);
readfile(WWW_ROOT . '/files/uploads/limited/'.$filename);
$filename = '西出水0424__midium.jpg'
$display = true
$conditions = array(
'UploaderFile.name' => '西出水0424.jpg',
(int) 0 => array(
'or' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'or' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
)
)
)
)
$data = array(
'UploaderFile' => array(
'id' => '2412',
'name' => '西出水0424.jpg',
'alt' => '西出水0424.jpg',
'uploader_category_id' => null,
'user_id' => '8',
'publish_begin' => null,
'publish_end' => null,
'created' => '2025-04-24 08:44:28',
'modified' => '2025-04-24 08:44:28'
)
)
$info = array(
'dirname' => '.',
'basename' => '0424__midium.jpg',
'extension' => 'jpg',
'filename' => '0424__midium'
)
$ext = 'jpg'
$contentsMaping = array(
'gif' => 'image/gif',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'png' => 'image/png',
'swf' => 'application/x-shockwave-flash',
'pdf' => 'application/pdf',
'sig' => 'application/pgp-signature',
'spl' => 'application/futuresplash',
'doc' => 'application/msword',
'ai' => 'application/postscript',
'torrent' => 'application/x-bittorrent',
'dvi' => 'application/x-dvi',
'gz' => 'application/x-gzip',
'pac' => 'application/x-ns-proxy-autoconfig',
'tar.gz' => 'application/x-tgz',
'tar' => 'application/x-tar',
'zip' => 'application/zip',
'mp3' => 'audio/mpeg',
'm3u' => 'audio/x-mpegurl',
'wma' => 'audio/x-ms-wma',
'wax' => 'audio/x-ms-wax',
'wav' => 'audio/x-wav',
'xbm' => 'image/x-xbitmap',
'xpm' => 'image/x-xpixmap',
'xwd' => 'image/x-xwindowdump',
'css' => 'text/css',
'html' => 'text/html',
'js' => 'text/javascript',
'txt' => 'text/plain',
'xml' => 'text/xml',
'mpeg' => 'video/mpeg',
'mov' => 'video/quicktime',
'avi' => 'video/x-msvideo',
'asf' => 'video/x-ms-asf',
'wmv' => 'video/x-ms-wmv'
)
readfile - [internal], line ??
UploaderFilesController::view_limited_file() - APP/Plugin/Uploader/Controller/UploaderFilesController.php, line 500
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - ROOT/index.php, line 152