Fixes empty content type during upload (#9848)
* Specify exact Content-Type for encrypted uploads * Add content type check for encrypted file upload * Fix code style issuespull/28217/head
parent
b034ada6fd
commit
b0dd0b8aef
|
@ -303,6 +303,7 @@ export async function uploadFile(
|
|||
progressHandler,
|
||||
abortController,
|
||||
includeFilename: false,
|
||||
type: "application/octet-stream",
|
||||
});
|
||||
if (abortController.signal.aborted) throw new UploadCanceledError();
|
||||
|
||||
|
|
|
@ -312,6 +312,7 @@ describe("uploadFile", () => {
|
|||
expect.objectContaining({
|
||||
progressHandler,
|
||||
includeFilename: false,
|
||||
type: "application/octet-stream",
|
||||
}),
|
||||
);
|
||||
expect(mocked(client.uploadContent).mock.calls[0][0]).not.toBe(file);
|
||||
|
|
Loading…
Reference in New Issue