zip first
This commit is contained in:
@@ -48,8 +48,12 @@ export function saveNote(noteForm, secret) {
|
||||
});
|
||||
}
|
||||
|
||||
let bufferArrary = eval("[" + note.text + "]");
|
||||
let array = Uint8Array.from(bufferArrary);
|
||||
// let bufferArrary = eval("[" + note.text + "]");
|
||||
// let array = Uint8Array.from(bufferArrary);
|
||||
|
||||
let encoder = new TextEncoder()
|
||||
let array = encoder.encode(note.text)
|
||||
|
||||
let blob = new Blob([array], { type: "application/octet-stream" });
|
||||
let form = new FormData();
|
||||
form.append("file", blob, noteForm.key);
|
||||
|
||||
Reference in New Issue
Block a user