|
@@ -46,57 +46,3 @@ export const defaultContentDispositionSettings: Record<
|
|
|
'application/x-rar-compressed': 'attachment',
|
|
'application/x-rar-compressed': 'attachment',
|
|
|
'text/csv': 'attachment',
|
|
'text/csv': 'attachment',
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
-export const strictMimeTypeSettings: Record<string, 'inline' | 'attachment'> = {
|
|
|
|
|
- // Documents
|
|
|
|
|
- 'application/pdf': 'attachment',
|
|
|
|
|
- 'application/json': 'attachment',
|
|
|
|
|
- 'text/plain': 'attachment',
|
|
|
|
|
- 'text/csv': 'attachment',
|
|
|
|
|
- 'text/html': 'attachment',
|
|
|
|
|
-
|
|
|
|
|
- // Images
|
|
|
|
|
- 'image/jpeg': 'attachment',
|
|
|
|
|
- 'image/png': 'attachment',
|
|
|
|
|
- 'image/gif': 'attachment',
|
|
|
|
|
- 'image/webp': 'attachment',
|
|
|
|
|
- 'image/svg+xml': 'attachment',
|
|
|
|
|
-
|
|
|
|
|
- // Audio and Video
|
|
|
|
|
- 'audio/mpeg': 'attachment',
|
|
|
|
|
- 'video/mp4': 'attachment',
|
|
|
|
|
- 'video/webm': 'attachment',
|
|
|
|
|
-
|
|
|
|
|
- // Fonts
|
|
|
|
|
- 'font/woff2': 'attachment',
|
|
|
|
|
- 'font/woff': 'attachment',
|
|
|
|
|
- 'font/ttf': 'attachment',
|
|
|
|
|
- 'font/otf': 'attachment',
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-export const laxMimeTypeSettings: Record<string, 'inline' | 'attachment'> = {
|
|
|
|
|
- // Documents
|
|
|
|
|
- 'application/pdf': 'inline',
|
|
|
|
|
- 'application/json': 'inline',
|
|
|
|
|
- 'text/plain': 'inline',
|
|
|
|
|
- 'text/csv': 'inline',
|
|
|
|
|
- 'text/html': 'attachment',
|
|
|
|
|
-
|
|
|
|
|
- // Images
|
|
|
|
|
- 'image/jpeg': 'inline',
|
|
|
|
|
- 'image/png': 'inline',
|
|
|
|
|
- 'image/gif': 'inline',
|
|
|
|
|
- 'image/webp': 'inline',
|
|
|
|
|
- 'image/svg+xml': 'attachment',
|
|
|
|
|
-
|
|
|
|
|
- // Audio and Video
|
|
|
|
|
- 'audio/mpeg': 'inline',
|
|
|
|
|
- 'video/mp4': 'inline',
|
|
|
|
|
- 'video/webm': 'inline',
|
|
|
|
|
-
|
|
|
|
|
- // Fonts
|
|
|
|
|
- 'font/woff2': 'inline',
|
|
|
|
|
- 'font/woff': 'inline',
|
|
|
|
|
- 'font/ttf': 'inline',
|
|
|
|
|
- 'font/otf': 'inline',
|
|
|
|
|
-};
|
|
|