Update Upload.java

This commit is contained in:
Max W. 2024-02-15 13:40:36 +01:00
parent 93a3ab41bd
commit 1bce2e1d2e

View File

@ -30,6 +30,9 @@ public class Upload extends ApiRestController {
@RequestParam(value = "password", required = false) String password,
@RequestParam(value = "singleDownload", defaultValue = "false") boolean singleDownload,
@RequestParam(value = "fileDescription", required = false) String fileDescription) {
// TODO: Handle shortStorage0
if (file.isEmpty()) {
log.debug("User tried to upload an empty file. IP: " + request.getRemoteAddr());
return new ResponseEntity<>("Please select a file to upload.", HttpStatus.NOT_ACCEPTABLE);