Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/Enums/MimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@

enum MimeType: string
{
case FILE_CSV = 'text/csv';
case FILE_PDF = 'application/pdf';
case FILE_PDF = 'application/pdf'; // Will not rename to APPLICATION_PDF to keep the backwards compatibility
case APPLICATION_JAVASCRIPT = 'application/x-javascript';
case APPLICATION_PYTHON = 'application/x-python';

case TEXT_PLAIN = 'text/plain';
case TEXT_HTML = 'text/html';
case TEXT_CSS = 'text/css';
case TEXT_MARKDOWN = 'text/md';
case TEXT_CSV = 'text/csv';
case TEXT_XML = 'text/xml';
case TEXT_RTF = 'text/rtf';

case IMAGE_PNG = 'image/png';
case IMAGE_JPEG = 'image/jpeg';
case IMAGE_HEIC = 'image/heic';
Expand Down
Loading