| layout | post |
|---|---|
| title | Trigger click event of input file from external button in React Uploader component | Syncfusion |
| description | Learn here all about Trigger click event of input file from external button in Syncfusion React Uploader component of Syncfusion Essential JS 2 and more. |
| control | Trigger click event of input file from external button |
| platform | ej2-react |
| documentation | ug |
| domainurl |
Click event of input file from the external button can be triggered using the click event of button.
In the following sample, you can find the triggered click event of input file from Essential® JavaScript 2 Button.
{% tabs %} {% highlight js tabtitle="index.jsx" %} {% include code-snippet/uploader/external-click-cs1/app/index.jsx %} {% endhighlight %} {% highlight ts tabtitle="index.tsx" %} {% include code-snippet/uploader/external-click-cs1/app/index.tsx %} {% endhighlight %} {% endtabs %}
{% previewsample "page.domainurl/code-snippet/uploader/external-click-cs1" %}
You can also explore React File Upload feature tour page for its groundbreaking features. You can also explore our React File Upload example to understand how to browse the files which you want to upload to the server.