Skip to content

Commit

Permalink
Merge pull request #34 from dcSpark/nico/fix-name-upload
Browse files Browse the repository at this point in the history
fix name upload
  • Loading branch information
nicarq authored Oct 9, 2023
2 parents cc9e29c + f72f33a commit 9f40b88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class FileUploader {
const nonce = Array.from(iv).map(b => b.toString(16).padStart(2, '0')).join('');

const formData = new FormData();
formData.append(filename || file.name, new Blob([encryptedFileData]));
formData.append('file', new Blob([encryptedFileData]), filename || file.name);

await fetch(`${this.base_url}/v1/add_file_to_inbox_with_symmetric_key/${hash}/${nonce}`, {
method: 'POST',
Expand Down

0 comments on commit 9f40b88

Please sign in to comment.