How to integrate this directive with Reactive Forms Angular 4? #864

Open
opened 2017-08-08 18:17:39 +00:00 by bhaidar · 2 comments
bhaidar commented 2017-08-08 18:17:39 +00:00 (Migrated from github.com)

Hello,
I am making use of this directive to upload photos.

In my case, I am using Reactive Forms. How can I integrate this directive in a sense that when the user have selected an image above the max allowed size to make the Form invalid. I am not able to figure out how to integrate both Reactive Form and ng2-file-upload.

Thanks

Hello, I am making use of this directive to upload photos. In my case, I am using Reactive Forms. How can I integrate this directive in a sense that when the user have selected an image above the max allowed size to make the Form invalid. I am not able to figure out how to integrate both Reactive Form and ng2-file-upload. Thanks
adrianfaciu commented 2017-10-01 10:30:14 +00:00 (Migrated from github.com)

Can you provide a short sample repo where you have this setup ?

Can you provide a short sample repo where you have this setup ?
Vikram-ksingh commented 2017-11-30 13:50:44 +00:00 (Migrated from github.com)

@bhaidar Did you get it done with reactive form ?
I am having same kind of requirement where I need to upload image through a form ( post addition form where post can have featured image ).

@bhaidar Did you get it done with reactive form ? I am having same kind of requirement where I need to upload image through a form ( post addition form where post can have featured image ).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#864