Skip to content

Commit a48e612

Browse files
authored
Update supported mime types (#63)
Update supported mime types
1 parent 89aa62b commit a48e612

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Enums/MimeType.php

+12-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@
66

77
enum MimeType: string
88
{
9-
case FILE_CSV = 'text/csv';
10-
case FILE_PDF = 'application/pdf';
9+
case FILE_PDF = 'application/pdf'; // Will not rename to APPLICATION_PDF to keep the backwards compatibility
10+
case APPLICATION_JAVASCRIPT = 'application/x-javascript';
11+
case APPLICATION_PYTHON = 'application/x-python';
12+
13+
case TEXT_PLAIN = 'text/plain';
14+
case TEXT_HTML = 'text/html';
15+
case TEXT_CSS = 'text/css';
16+
case TEXT_MARKDOWN = 'text/md';
17+
case TEXT_CSV = 'text/csv';
18+
case TEXT_XML = 'text/xml';
19+
case TEXT_RTF = 'text/rtf';
20+
1121
case IMAGE_PNG = 'image/png';
1222
case IMAGE_JPEG = 'image/jpeg';
1323
case IMAGE_HEIC = 'image/heic';

0 commit comments

Comments
 (0)