Skip to content

Commit 79aed49

Browse files
authored
Update supported mime types
1 parent 89aa62b commit 79aed49

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/Enums/MimeType.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,24 @@
66

77
enum MimeType: string
88
{
9-
case FILE_CSV = 'text/csv';
10-
case FILE_PDF = 'application/pdf';
9+
case APPLICATION_PDF = 'application/pdf';
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';
1424
case IMAGE_HEIF = 'image/heif';
1525
case IMAGE_WEBP = 'image/webp';
26+
27+
// @deprecated
28+
case FILE_PDF = 'application/pdf';
1629
}

0 commit comments

Comments
 (0)