mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
* [refactor] Introduce a file download service * [refactor] Point platformUtilsService.saveFile() callers to fileDownloadService.download() instead * [refactor] Remove platformUtilsService.saveFile() * [fix] Force send attachments to always download and never open * [fix] Remove the window property from FileDownloadRequest * [fix] Move FileDownloadRequest to /abstractions/fileDownload * [fix] Simplify FileDownloadRequest to a type * [fix] Move BrowserApi.saveFile logic into BrowserFileDownloadService * [fix] Use proper blob types for file downloads * [fix] forceDownload -> downloadMethod on FileDownloadRequest * [fix] Remove fileType from FileDownloadRequest * [fix] Make fileType private
7 lines
150 B
TypeScript
7 lines
150 B
TypeScript
export type FileDownloadRequest = {
|
|
fileName: string;
|
|
blobData: BlobPart;
|
|
blobOptions?: BlobPropertyBag;
|
|
downloadMethod?: "save" | "open";
|
|
};
|