From 0eb747917c9079d3540194c93814e13c6e626538 Mon Sep 17 00:00:00 2001 From: hrishikesh-patil Date: Sat, 4 Dec 2021 14:02:26 +0530 Subject: [PATCH] [#11456] Unable to upload Profile Pictures on Local Machine (#11462) --- src/main/java/teammates/logic/core/LocalFileStorageService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/teammates/logic/core/LocalFileStorageService.java b/src/main/java/teammates/logic/core/LocalFileStorageService.java index 51f06f58013..7480fc56310 100644 --- a/src/main/java/teammates/logic/core/LocalFileStorageService.java +++ b/src/main/java/teammates/logic/core/LocalFileStorageService.java @@ -16,7 +16,7 @@ */ public final class LocalFileStorageService implements FileStorageService { - private static final String BASE_DIRECTORY = "../../filestorage-dev"; + private static final String BASE_DIRECTORY = System.getProperty("user.dir") + "/filestorage-dev"; private static final Logger log = Logger.getLogger(); private static String constructFilePath(String fileKey) {