File

src/app/classes/upload-file.ts

Description

Upload file

Example

Index

Properties

Constructor

constructor(file: File)

Constructor

Parameters :
Name Type Optional Description
file File

File

Properties

file
file: File
Type : File

File

name
name: string
Type : string

File name

progress
progress: number
Type : number

Upload progress

url
url: string
Type : string

File url

export class Upload {
  /** File */
  file: File;
  /** File name */
  name: string;
  /** Upload progress */
  progress: number;
  /** File url */
  url: string;

  /**
   * Constructor
   * @param  {File} file File
   */
  constructor(file: File) {
    this.file = file;
    this.name = file.name;
  }
}

results matching ""

    No results matching ""