Skip to content

Commit

Permalink
bugfix/add-input-capture (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vugar authored Nov 7, 2021
1 parent 9421977 commit c6ce780
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ autoCropArea: 0.8

/** Whether to auto upload file on file choose or not. Default: true. You can get files list by accessing component files. */
@Input() enableAutoUpload = true;

/** capture paramerter for file input such as user,environment*/
@Input() fileInputCapture: string;

```

## Output events
Expand Down
4 changes: 4 additions & 0 deletions projects/file-picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ autoCropArea: 0.8

/** Whether to auto upload file on file choose or not. Default: true. You can get files list by accessing component files. */
@Input() enableAutoUpload = true;

/** capture paramerter for file input such as user,environment*/
@Input() fileInputCapture: string;

```

## Output events
Expand Down
2 changes: 1 addition & 1 deletion projects/file-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-awesome-uploader",
"version": "12.0.2",
"version": "12.0.3",
"description": "Angular Library for uploading files with Real-Time Progress bar, File Preview, Drag && Drop and Custom Template with Multi Language support",
"peerDependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0",
Expand Down
1 change: 1 addition & 0 deletions projects/file-picker/src/lib/file-picker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
id="fileInput"
#fileInput
[multiple]="uploadType === 'multi' ? 'multiple' : ''"
[attr.capture]="fileInputCapture"
(click)="fileInput.value = null"
(change)="onChange(fileInput.files)"
[accept]="accept"
Expand Down
4 changes: 4 additions & 0 deletions projects/file-picker/src/lib/file-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export class FilePickerComponent implements OnInit, OnDestroy {
/** captions object */
/** Whether to auto upload file on file choose or not. Default: true */
@Input() enableAutoUpload = true;

/** capture paramerter for file input such as user,environment*/
@Input() fileInputCapture: string;

cropper: any;
public files: FilePreviewModel[] = [];
/** Files array for cropper. Will be shown equentially if crop enabled */
Expand Down

0 comments on commit c6ce780

Please sign in to comment.