preserve file modes for up- and downloads - fixes #4141

This commit is contained in:
Eugene Pankov
2021-07-10 20:39:45 +02:00
parent 3e61630c6a
commit 0008b2f022
6 changed files with 35 additions and 13 deletions

View File

@@ -108,8 +108,8 @@ export class WebPlatformService extends PlatformService {
window.close()
}
async startDownload (name: string, size: number): Promise<FileDownload|null> {
const transfer = new HTMLFileDownload(name, size)
async startDownload (name: string, mode: number, size: number): Promise<FileDownload|null> {
const transfer = new HTMLFileDownload(name, mode, size)
this.fileTransferStarted.next(transfer)
return transfer
}
@@ -145,6 +145,7 @@ class HTMLFileDownload extends FileDownload {
constructor (
private name: string,
private mode: number,
private size: number,
) {
super()
@@ -154,6 +155,10 @@ class HTMLFileDownload extends FileDownload {
return this.name
}
getMode (): number {
return this.mode
}
getSize (): number {
return this.size
}