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.
Component.blob
file
1 parent f0083f5 commit 67f743eCopy full SHA for 67f743e
src/Multipart.ts
@@ -244,7 +244,7 @@ export class Multipart implements Part {
244
for (const [key, value] of formData.entries()) {
245
if (typeof value === "string") parts.push(new Component({"Content-Disposition": `form-data; name="${key}"`}, new TextEncoder().encode(value)));
246
else {
247
- const part = await Component.file(value);
+ const part = await Component.blob(value);
248
part.headers.set("Content-Disposition", `form-data; name="${key}"; filename="${value.name}"`);
249
parts.push(part);
250
}
0 commit comments