Hi,
Is it possible to pass the meta data information before the select/download file to uppy companion?
// This is demo code that using to download file that selected from drive.
var uppy = new Uppy.Core()
.use(Uppy.Dashboard, {
inline: true,
autoProceed: false,
onBeforeFileAdded: (currentFile, files) => currentFile,
infoTimeout: 5000,
target: '#drag-drop-area',
})
.use(Uppy.Tus, {
endpoint: 'http://localhost:41944/',
metaFields: {
name: file.name || file.id , //<-- get file name that will select from google drive
contentType: file.type || 'application/octet-stream' // <-- this line
}
})
Getting error on file object is null exception.
How to pass dynamic file metadata information like extension, filename on
Uppy.Tus() parameter…?