Skip to content

Commit

Permalink
fix: 첨부파일 디코딩 키 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Limchansol committed Mar 7, 2025
1 parent d35d112 commit 6e08697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actions/council.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const postMinutesByYearAction = withErrorHandler(

export const putMinuteAction = withErrorHandler(
async (year: number, index: number, formData: FormData) => {
decodeFormDataFileName(formData, 'addFiles');
decodeFormDataFileName(formData, 'newAttachments');
await putCouncilMinute(year, index, formData);
revalidateTag(FETCH_TAG_COUNCIL_MINUTE);
redirectKo(minutePath);
Expand Down
2 changes: 1 addition & 1 deletion utils/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export const encodeFormDataFileName = (
fileList.forEach((file) => formData.append(key, file, encodeURI(file.name)));
};

export type FormDataFileName = 'attachments' | 'newAttachments' | 'pdf' | 'addFiles';
export type FormDataFileName = 'attachments' | 'newAttachments' | 'pdf';

const isFile = (x: unknown): x is File => x instanceof File;

0 comments on commit 6e08697

Please sign in to comment.