mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
make blob first
This commit is contained in:
@@ -569,8 +569,8 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
|
|
||||||
const fd = new FormData();
|
const fd = new FormData();
|
||||||
try {
|
try {
|
||||||
fd.append('key', dataEncKey[1].encryptedString);
|
|
||||||
const blob = new Blob([encData], { type: 'application/octet-stream' });
|
const blob = new Blob([encData], { type: 'application/octet-stream' });
|
||||||
|
fd.append('key', dataEncKey[1].encryptedString);
|
||||||
fd.append('data', blob, encFileName.encryptedString);
|
fd.append('data', blob, encFileName.encryptedString);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (Utils.isNode && !Utils.isBrowser) {
|
if (Utils.isNode && !Utils.isBrowser) {
|
||||||
@@ -808,8 +808,8 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
|
|
||||||
const fd = new FormData();
|
const fd = new FormData();
|
||||||
try {
|
try {
|
||||||
fd.append('key', dataEncKey[1].encryptedString);
|
|
||||||
const blob = new Blob([encData], { type: 'application/octet-stream' });
|
const blob = new Blob([encData], { type: 'application/octet-stream' });
|
||||||
|
fd.append('key', dataEncKey[1].encryptedString);
|
||||||
fd.append('data', blob, encFileName.encryptedString);
|
fd.append('data', blob, encFileName.encryptedString);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (Utils.isNode && !Utils.isBrowser) {
|
if (Utils.isNode && !Utils.isBrowser) {
|
||||||
|
|||||||
Reference in New Issue
Block a user