This example shows how to send extra fields with each image upload through image.data.
<div id="entry-upload-extra-data"></div>
const app = Redactor('#entry-upload-extra-data', {
image: {
upload: '/api/endpoint/upload-image/',
data: {
folder: 'content',
source: 'docs-demo'
}
}
});