We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8108f50 commit 4d5cd1aCopy full SHA for 4d5cd1a
server/src/services/storage.service.ts
@@ -101,6 +101,10 @@ export class StorageService extends BaseService {
101
const savedValue = await this.systemMetadataRepository.get(SystemMetadataKey.MediaLocation);
102
let previous = savedValue?.location || '';
103
104
+ if (!previous && this.configRepository.getEnv().storage.mediaLocation) {
105
+ previous = current;
106
+ }
107
+
108
if (!previous) {
109
previous = path.startsWith('upload/') ? 'upload' : '/usr/src/app/upload';
110
}
0 commit comments