Skip to content

Commit 92ac4ae

Browse files
authored
strip quotes from content disposition file name
1 parent 0977a0a commit 92ac4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/FwLite/LcmCrdt/MediaServer/LcmMediaService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public async Task<ReadFileResponse> GetFileStream(Guid fileId)
7171
var httpClient = await httpClientProvider.GetHttpClient();
7272
var mediaClient = refitFactory.Service<IMediaServerClient>(httpClient);
7373
var response = await mediaClient.DownloadFile(fileId);
74-
return (await response.Content.ReadAsStreamAsync(), response.Content.Headers.ContentDisposition?.FileName);
74+
return (await response.Content.ReadAsStreamAsync(), response.Content.Headers.ContentDisposition?.FileName?.Replace("\"", ""));
7575
}
7676

7777
async Task<DownloadResult> IRemoteResourceService.DownloadResource(string remoteId, string localResourceCachePath)

0 commit comments

Comments
 (0)