Hi im using uppy in symfony 5 project.
const $dashboard = $('#uppy-dashboard');
new Uppy()
.use(Dashboard, {inline: true, target: '#uppy-dashboard'})
.use(XHR, {
fieldName: 'temporary_file[file]',
endpoint: $dashboard.data('url'),
headers: {
Authorization: `Bearer ${$dashboard.data('jwt-token')}`,
}
}
);
I have above configuration of uppy and in my request file key is still ‘file’ instead of ‘temporary_file[file]’.
File inside UplodedFile is correct.
What im doing wrong?
I was using docs XHR | Uppy and in my case the $_FILES has only key ‘file’.