File picker form control
Allows to select a binary for upload.
Component provides drop area functionality allowing you to just drop files within specified area.
Attributes:
- maxAllowedFiles maximum number of total files to be selected
- minRequiredFiles minimum number of total files to be selected
- accept type of files allowed for upload
- disableValidators disable specific validators
- dropped function callback to be invoked upon drop action
- uploadInProgress boolean flag indicating whenever there is upload ongoing
- uploadProgress the array of progress state objects for each selected file
- validateExtensionOnDrag turn on/off validation on file drag event
Usage Example:
Example :<div>
<c8y-file-picker-form-control
#filePicker
[formControl]="control"
[uploadInProgress]="isLoading"
(dropped)="onFileDroppedEvent($event)"
[uploadProgress]="uploadProgress"
></c8y-file-picker-form-control>
</div>