Additional upload data

This example shows how to send additional POST params with uploading.

Code

<!-- data from input -->
<input type="hidden" id="my-input-1" value="my-input-value-1">
<input type="hidden" id="my-input-2" value="my-input-value-2">

<!-- element -->
<textarea id="entry">...</textarea>

<!-- call -->
<script>
let app = Redactor('#entry', {
    image: {
        upload: '/image-uploader-path/',
        data: {
            id: 10,
            elements: '#my-input-1, #my-input-2'
        }
    }
});
</script>