diff --git a/complete/src/main/java/com/example/uploadingfiles/storage/FileSystemStorageService.java b/complete/src/main/java/com/example/uploadingfiles/storage/FileSystemStorageService.java index 4142cc9..a0f4e3c 100755 --- a/complete/src/main/java/com/example/uploadingfiles/storage/FileSystemStorageService.java +++ b/complete/src/main/java/com/example/uploadingfiles/storage/FileSystemStorageService.java @@ -24,11 +24,6 @@ public class FileSystemStorageService implements StorageService { @Autowired public FileSystemStorageService(StorageProperties properties) { - - if(properties.getLocation().trim().length() == 0){ - throw new StorageException("File upload location can not be Empty."); - } - this.rootLocation = Paths.get(properties.getLocation()); }