fileHeader.php

文件类型映射,可以自行添加

$config['fileHeader']['normal'] = ['Content-Type: application/octet-stream', 'Content-Transfer-Encoding: binary'];
$config['fileHeader']['jpg'] = ['Content-Type: image/jpeg'];
$config['fileHeader']['jpeg'] = ['Content-Type: image/jpeg'];
$config['fileHeader']['png'] = ['Content-Type: image/jpeg'];
$config['fileHeader']['svg'] = ['Content-Type: image/svg+xml'];
$config['fileHeader']['txt'] = ['Content-type: text/plain'];
$config['fileHeader']['css'] = ['Content-type: text/css'];
$config['fileHeader']['js'] = ['Content-type: application/javascript'];
$config['fileHeader']['json'] = ['Content-type: application/json'];
$config['fileHeader']['pdf'] = ['Content-type: application/pdf'];
$config['fileHeader']['html'] = ['Content-Type: text/html; charset=utf-8'];
$config['fileHeader']['zip'] = ['Content-Type: application/zip'];
$config['fileHeader']['mp3'] = ['Content-Type: audio/mpeg'];
$config['fileHeader']['mp4'] = ['Content-Type: audio/mpeg'];
$config['fileHeader']['swf'] = ['Content-Type: application/x-shockwave-flash'];
return $config;

results matching ""

    No results matching ""