Update Upload.java
This commit is contained in:
parent
93a3ab41bd
commit
1bce2e1d2e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user