dynamic-display-shared
Version:
A library for dynamic view
38 lines (37 loc) • 1.36 kB
TypeScript
import { OnDestroy } from '@angular/core';
import { Observable } from 'rxjs';
import { AzurestorageService } from './azure-storage.service';
import { StorageService } from './storage.service';
import * as i0 from "@angular/core";
export declare class AzureFileUploadBlService implements OnDestroy {
private blobService;
private storage;
protected env: any;
signalrData$: any;
signalrError$: any;
uploadConfig: UploadConfig;
percent: number;
currentFileName: string;
constructor(blobService: AzurestorageService, storage: StorageService, env: any);
ngOnDestroy(): void;
uploadFileByToken(file: File, fileName: string, mimeType: string): void;
getSasTokenWrite(file: string): Observable<string>;
uploadFile(file: File, token: string, fileName?: string): void;
saveFileError(error: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AzureFileUploadBlService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AzureFileUploadBlService>;
}
export declare class UploadParams {
sas: string;
storageAccount: string;
containerName: string;
}
export declare class UploadConfig {
baseUrl: string;
blockSize: number;
sasToken: string;
file: File;
complete: () => void;
error: (err: any) => void;
progress: (percent: any) => void;
}