How to embed the file picker inside a div

HI,

Im trying to figure out how to show an inline file picker without the need to click a button or show it in the modal style dialog as it does by default.

Currently using the v3 API, and i can trigger the opening of the uploader, but im looking for an easy way to populate an existing div with the contents of the file picker so it appears as a control on the page.

Any suggestions greatly appreciated

Hi @David_Imrie

You can use the Panel mode of the widget for this scenario https://uploadcare.com/docs/file-uploader-api/dialog-panel/#open-panel.

Here’s a live demo showing how to use a panel widget and handle such events as adding or removing a file to/from the widget Panel widget. Handle add/remove events - CodeSandbox

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.