diff --git a/src/main/java/de/tum/in/www1/artemis/web/rest/lecture/AttachmentUnitResource.java b/src/main/java/de/tum/in/www1/artemis/web/rest/lecture/AttachmentUnitResource.java index 516c7efec117..de4e014d583d 100644 --- a/src/main/java/de/tum/in/www1/artemis/web/rest/lecture/AttachmentUnitResource.java +++ b/src/main/java/de/tum/in/www1/artemis/web/rest/lecture/AttachmentUnitResource.java @@ -174,7 +174,7 @@ public ResponseEntity createAttachmentUnit(@PathVariable Long le @EnforceAtLeastEditor public ResponseEntity uploadSlidesForProcessing(@PathVariable Long lectureId, @RequestPart("file") MultipartFile file) { // time until the temporary file gets deleted. Must be greater or equal than MINUTES_UNTIL_DELETION in attachment-units.component.ts - int minutesUntilDeletion = 3; + int minutesUntilDeletion = 30; log.debug("REST request to upload file: {}", file.getOriginalFilename()); checkLecture(lectureId); if (!Objects.equals(FilenameUtils.getExtension(file.getOriginalFilename()), "pdf")) { diff --git a/src/main/webapp/app/lecture/lecture-unit/lecture-unit-management/attachment-units/attachment-units.component.ts b/src/main/webapp/app/lecture/lecture-unit/lecture-unit-management/attachment-units/attachment-units.component.ts index eb0d98acc88a..b8d95ef66b6c 100644 --- a/src/main/webapp/app/lecture/lecture-unit/lecture-unit-management/attachment-units/attachment-units.component.ts +++ b/src/main/webapp/app/lecture/lecture-unit/lecture-unit-management/attachment-units/attachment-units.component.ts @@ -52,7 +52,7 @@ export class AttachmentUnitsComponent implements OnInit { file: File; filename: string; //time until the file gets uploaded again. Must be less or equal than minutesUntilDeletion in AttachmentUnitResource.java - readonly MINUTES_UNTIL_DELETION = 3; + readonly MINUTES_UNTIL_DELETION = 29; constructor( private activatedRoute: ActivatedRoute,