File

src/ui/file-upload/services/smart-file-upload.service.ts

Description

Service for uploading files with optional context data.

Index

Methods

Constructor

constructor(http: HttpClient)
Parameters :
Name Type Optional
http HttpClient No

Methods

uploadFile
uploadFile(saveUrl: string, file: FileInfo, options: SmartFileUploadOptions)

Uploads a single file to the specified URL with optional context data.

Parameters :
Name Type Optional Default value Description
saveUrl string No
  • The URL to upload the file to
file FileInfo No
  • The file to upload
options SmartFileUploadOptions No {}
  • Upload options including context data

Observable that emits upload progress and result

uploadFiles
uploadFiles(uploadUrl: string, files: FileInfo[], options: SmartFileUploadOptions)

Uploads files to the specified URL with optional context data.

Parameters :
Name Type Optional Default value Description
uploadUrl string No
  • The URL to upload files to
files FileInfo[] No
  • The files to upload
options SmartFileUploadOptions No {}
  • Upload options including context data

Observable that emits upload progress and result

results matching ""

    No results matching ""