Skip to content

Commit 943b7de

Browse files
committed
fix(recording): Reduce config key length for request-upload configs
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 11bbcde commit 943b7de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Service/RecordingService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class RecordingService {
5454
public const CONSENT_REQUIRED_OPTIONAL = 2;
5555

5656
public const APPCONFIG_PREFIX = 'recording/';
57-
public const APPCONFIG_UPLOAD_PREFIX = 'recording-upload/';
57+
public const APPCONFIG_UPLOAD_PREFIX = 'recupload/';
5858

5959
public const DEFAULT_ALLOWED_RECORDING_FORMATS = [
6060
'audio/ogg' => ['ogg'],
@@ -315,7 +315,7 @@ private function cleanupUploadShare(Room $room, string $fileName): void {
315315
}
316316

317317
private function getUploadShareConfigKey(Room $room, string $fileName): string {
318-
return self::APPCONFIG_UPLOAD_PREFIX . $room->getToken() . '/' . basename($fileName);
318+
return self::APPCONFIG_UPLOAD_PREFIX . $room->getToken() . '/' . sha1(basename($fileName));
319319
}
320320

321321
/**

0 commit comments

Comments
 (0)