UNPKG

inet-core

Version:
24 lines (23 loc) 1 kB
import { Observable } from 'rxjs'; import { HttpClientService } from './http-client.service'; import { ChunkUploadOptions, FileUploadOptions } from './model/upload-options.interface'; import * as i0 from "@angular/core"; export declare class UploaderService { private http; constructor(http: HttpClientService); private uploadFile; private uploadChunk; private uploadChunks; private uploadChunkFile; uploadBlob(url: string, blobs: Blob[], formData: FormData, options: ChunkUploadOptions): Observable<any>; /** * Send files to a server * @param url - URL of server to receive the file * @param files - the input files * @param formData - the FormData object * @param options - the file upload options */ upload(url: string, files: File[], params?: any, options?: FileUploadOptions): Promise<any[]>; static ɵfac: i0.ɵɵFactoryDeclaration<UploaderService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<UploaderService>; }