Finished upload logic
This commit is contained in:
@ -58,7 +58,10 @@ public class FileService {
|
||||
|
||||
String fileId = fileIdService.generateNewUniqueId();
|
||||
|
||||
String password = fileSecurityService.generateFilePassword(); // TODO: generate password
|
||||
String password = "";
|
||||
if (passwordProtected) {
|
||||
password = fileSecurityService.generateFilePassword();
|
||||
}
|
||||
|
||||
FileUpload fileUpload = FileUpload.builder()
|
||||
.fileId(fileId)
|
||||
|
Reference in New Issue
Block a user