Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

이미지 용량 10MB까지 되도록 수정 및 스타일 수정 #670

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions frontend/src/components/PostForm/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ export const DEADLINE_OPTION: DeadlineOptionInfo[] = [
},
},
];

export const MAX_FILE_SIZE = 1500000;
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const TextCardLink = styled(Link)`
export const TextCardTitle = styled.span`
font: var(--text-caption);
text-decoration: underline;
text-underline-position: under;
`;

export const TextCardContent = styled.span`
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/constants/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const REQUEST_POST_KIND_URL = {

export const SEARCH_KEYWORD = 'keyword';

export const MAX_FILE_SIZE = 1500000;
export const MAX_FILE_SIZE = 10000000;

export const POST_TITLE = {
MAX_LENGTH: 100,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/post/uploadImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const uploadImage = async ({
inputElement.setCustomValidity('');

if (imageFile.size > MAX_FILE_SIZE) {
inputElement.setCustomValidity('사진의 용량은 1.5MB 이하만 가능합니다.');
inputElement.setCustomValidity('사진의 용량은 10MB 이하만 가능합니다.');
inputElement.reportValidity();

return;
Expand Down
Loading