Hi, I am using uppy dashboard but I want to using my own button to browse file and added to uppy dashboard using addFile(file)
. How to disable browse file / drag and drop on uppy dashboard? Thanks
This is not possible. We are considering making more composable components in the future, for now this is it.
You can use the disableLocalFiles
field to disable local file input and file drag-and-drop in the dashboard.
Sample code
uppy.use( Dashboard, {
trigger: '#upload-btn',
inline: false,
closeModalOnClickOutside: true,
proudlyDisplayPoweredByUppy: true,
showProgressDetails: true,
disableLocalFiles: true, // This line will disable the local file inputs and files drag & drop.
} );