Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #235 from WisdomWorks/dev-stef
Browse files Browse the repository at this point in the history
fix[dev-stef]: fix import quiz API
  • Loading branch information
TungPhan2808 authored Apr 16, 2024
2 parents 35dd34f + df04130 commit d316dfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public ResponseEntity<?> createQuizExercise(@Valid @RequestBody CreateQuizExerci
}

@PostMapping
@RequestMapping(value = "quiz/excel", method = RequestMethod.POST)
@RequestMapping(value = "quiz/excel", method = RequestMethod.POST, consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})
public ResponseEntity<?> createQuizFromExcel(@Valid @ModelAttribute CreateQuizExerciseByExcelRequest request, @RequestParam("file") MultipartFile file) {
try {
ExcelResult excelResult = ExcelHelper.readQuizQuestionsFromExcel(file);
Expand Down

0 comments on commit d316dfb

Please sign in to comment.