-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: #115 허용하는 파일 확장자 constants로 정리
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// 이미지 파일 | ||
export const JPG = 'image/jpeg'; | ||
export const PNG = 'image/png'; | ||
export const SVG = 'image/svg+xml'; | ||
export const WEBP = 'image/webp'; | ||
|
||
// 압축 파일 | ||
export const ZIP = 'application/zip'; | ||
export const RAR = 'application/x-rar-compressed'; | ||
export const Z7 = 'application/x-7z-compressed'; | ||
export const ALZ = 'application/x-alz'; | ||
export const EGG = 'application/x-egg'; | ||
|
||
// 문서 파일 | ||
export const TXT = 'text/plain'; | ||
export const PDF = 'application/pdf'; | ||
export const HWP = 'application/x-hwp'; | ||
export const DOC = 'application/msword'; | ||
export const XLS = 'application/vnd.ms-excel'; | ||
export const PPT = 'application/vnd.ms-powerpoint'; | ||
export const DOCX = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; | ||
export const XLSX = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; | ||
export const PPTX = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; | ||
|
||
export const TASK_ACCEPT_FILE_TYPES = [ | ||
JPG, | ||
PNG, | ||
SVG, | ||
WEBP, | ||
ZIP, | ||
RAR, | ||
Z7, | ||
ALZ, | ||
EGG, | ||
PDF, | ||
TXT, | ||
HWP, | ||
DOC, | ||
XLS, | ||
PPT, | ||
DOCX, | ||
XLSX, | ||
PPTX, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters