mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:38:28 +00:00
fix: use file-type for mime sniffing
This commit is contained in:
@@ -319,7 +319,7 @@ async function resolveMedia(
|
||||
);
|
||||
}
|
||||
const data = Buffer.from(await res.arrayBuffer());
|
||||
const mime = detectMime({
|
||||
const mime = await detectMime({
|
||||
buffer: data,
|
||||
headerMime: res.headers.get("content-type"),
|
||||
filePath: file.file_path,
|
||||
|
||||
Reference in New Issue
Block a user