Hi,
Can someone help me to add options such as the below;
autoProceed: false,
allowMultipleUploads: false,
restrictions: {
maxNumberOfFiles: 1,
minNumberOfFiles: 1,
}
To this code;
const uppyElement = Uppy.Core()
.use(Uppy.Dashboard, {
id: 'element',
showLinkToFileUploadResult: false,
// hideUploadButton: true,
hideCancelButton: true,
inline: true,
height: 180,
width: '100%',
target: '#element-photo'
})
.use(Uppy.XHRUpload, {endpoint: '/uppy-element'})
Looks like it should be in the Core() function call but I can’t figure it out!