Topic: File input component

knowlative pro asked 5 years ago

Hi, I'm using file input component, but when I select a file, the path does not appear. This is my code: <form [formGroup]="gForm" (ngSubmit)="onSubmit()"> ... <div class="md-form"> <div class="file-field"> <div class="btn btn-primary btn-sm float-left"> <span>Choose file</span> <input type="file"> </div> <div class="file-path-wrapper"> <input class="file-path validate" type="text" placeholder="Upload your file"> </div> </div> </div> ... </form> How can I solve this problem? Thanks

knowlative pro answered 5 years ago

Sorry, I had not found the basic exemple. Thanks

Damian Gemza staff answered 5 years ago

Dear knowlative, File input needs also .ts code. Did you used .ts code in your component.ts file also ? Let me know. Best Regards, Damian

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No