Update the SDK. (#3407)

Fixes a bug where we couldn't open images sent by EXA with a mimetype of image/*
This commit is contained in:
Doug
2024-10-14 13:59:09 +01:00
committed by GitHub
parent a16e1346fe
commit b1b2297972
8 changed files with 262 additions and 224 deletions
@@ -35,7 +35,11 @@ actor MediaLoader: MediaLoaderProtocol {
}
func loadMediaFileForSource(_ source: MediaSourceProxy, filename: String?) async throws -> MediaFileHandleProxy {
let result = try await client.getMediaFile(mediaSource: source.underlyingSource, body: filename, mimeType: source.mimeType ?? "application/octet-stream", useCache: true, tempDir: nil)
let result = try await client.getMediaFile(mediaSource: source.underlyingSource,
filename: filename,
mimeType: source.mimeType ?? "application/octet-stream",
useCache: true,
tempDir: nil)
return MediaFileHandleProxy(handle: result)
}