This commit is contained in:
Eugene
2024-08-24 23:49:16 +02:00
parent 82013e3139
commit f0d228bb60
3 changed files with 2 additions and 20 deletions

View File

@@ -22,7 +22,6 @@ export interface MessageBoxResult {
export abstract class FileTransfer {
abstract getName (): string
abstract getRelativePath (): string | null
abstract getMode (): number
abstract getSize (): number
abstract close (): void
@@ -244,7 +243,7 @@ export class HTMLFileUpload extends FileUpload {
private stream: ReadableStream
private reader: ReadableStreamDefaultReader
constructor (private file: File, private relativePath: string|null = null) {
constructor (private file: File) {
super()
this.stream = this.file.stream()
this.reader = this.stream.getReader()
@@ -254,10 +253,6 @@ export class HTMLFileUpload extends FileUpload {
return this.file.name
}
getRelativePath (): string|null {
return this.relativePath
}
getMode (): number {
return 0o644
}