Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (27 loc) · 1.18 KB

File metadata and controls

39 lines (27 loc) · 1.18 KB

Single Upload Component

simple-upload

Simple Usage

  <ru-single-upload ></ru-single-upload>

Advanced Usage

  <ru-single-upload acceptedFiles="image/jpeg, image/png"
                    (onError)="doSomething()"
                    (onFileAdd)="doSomething()"
                    (onFileChange)="doSomething()"
                    (onFileRemove)="doSomething()"
                    (onFileUpload)="doSomething()">
  </ru-single-upload>

Valid Inputs

  • acceptedFiles: accepted files to upload

Ouputs

  • onError: emits the error when there is an error
  • onFileAdd: emits the new file when a new file is added not uploaded
  • onFileChange: emits the added or removed file when the file is added or removed
  • onFileRemove: emits the removed file when the file is removed
  • onFileUpload: emits the file as soon as it is uploaded

Custom Usage

Upload with own Button

custom-usage