Skip to content

Commit 5429119

Browse files
authored
Merge pull request #447 from boostcampwm-2024/fix/file-upload-parameter
🐛 fix: 잘못된 파라미터명 수정
2 parents 39b0fbb + 7b0a9bb commit 5429119

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/file/service/file.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export class FileService {
99
constructor(private readonly fileRepository: FileRepository) {}
1010

1111
async create(file: any, userId: number) {
12-
const { originalname, mimetype, size, path } = file;
12+
const { originalName, mimetype, size, path } = file;
1313

1414
const savedFile = await this.fileRepository.save({
15-
originalname,
15+
originalName,
1616
mimetype,
1717
size,
1818
path,

0 commit comments

Comments
 (0)