Disable browse file / drag and drop on uppy dashboard

Started by benny-adiwijaya2 replies321 views
benny-adiwijayaOriginal post
#1

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

MerlijnTransloadit team
#2

This is not possible. We are considering making more composable components in the future, for now this is it.

KMchaudhary
#3

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.
} );