mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:03:08 +02:00
Update const.ts
This commit is contained in:
parent
cfd1888969
commit
154e418c34
1 changed files with 28 additions and 14 deletions
|
@ -5,6 +5,7 @@ export const USER_ACTIVE_THRESHOLD = 1000 * 60 * 60 * 24 * 3; // 3days
|
||||||
// ここに含まれないものは application/octet-stream としてレスポンスされる
|
// ここに含まれないものは application/octet-stream としてレスポンスされる
|
||||||
// SVGはXSSを生むので許可しない
|
// SVGはXSSを生むので許可しない
|
||||||
export const FILE_TYPE_BROWSERSAFE = [
|
export const FILE_TYPE_BROWSERSAFE = [
|
||||||
|
// Images
|
||||||
'image/png',
|
'image/png',
|
||||||
'image/gif',
|
'image/gif',
|
||||||
'image/jpeg',
|
'image/jpeg',
|
||||||
|
@ -13,21 +14,34 @@ export const FILE_TYPE_BROWSERSAFE = [
|
||||||
'image/bmp',
|
'image/bmp',
|
||||||
'image/tiff',
|
'image/tiff',
|
||||||
'image/x-icon',
|
'image/x-icon',
|
||||||
'video/mpeg',
|
|
||||||
'video/mp4',
|
// OggS
|
||||||
'video/mp2t',
|
'audio/opus',
|
||||||
'video/webm',
|
|
||||||
'video/ogg',
|
'video/ogg',
|
||||||
'video/3gpp',
|
|
||||||
'video/quicktime',
|
|
||||||
'video/x-m4v',
|
|
||||||
'video/x-msvideo',
|
|
||||||
'audio/mpeg',
|
|
||||||
'audio/aac',
|
|
||||||
'audio/wav',
|
|
||||||
'audio/webm',
|
|
||||||
'audio/ogg',
|
'audio/ogg',
|
||||||
'audio/x-m4a',
|
|
||||||
'audio/x-flac',
|
|
||||||
'application/ogg',
|
'application/ogg',
|
||||||
|
|
||||||
|
// ISO/IEC base media file format
|
||||||
|
'video/quicktime',
|
||||||
|
'video/mp4',
|
||||||
|
'audio/mp4',
|
||||||
|
'video/x-m4v',
|
||||||
|
'audio/x-m4a',
|
||||||
|
'video/3gpp',
|
||||||
|
'video/3gpp2',
|
||||||
|
|
||||||
|
'video/mpeg',
|
||||||
|
'audio/mpeg',
|
||||||
|
|
||||||
|
'video/webm',
|
||||||
|
'audio/webm',
|
||||||
|
|
||||||
|
'audio/aac',
|
||||||
|
'audio/x-flac',
|
||||||
|
'audio/vnd.wave',
|
||||||
];
|
];
|
||||||
|
/*
|
||||||
|
https://github.com/sindresorhus/file-type/blob/main/supported.js
|
||||||
|
https://github.com/sindresorhus/file-type/blob/main/core.js
|
||||||
|
https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers
|
||||||
|
*/
|
||||||
|
|
Loading…
Reference in a new issue