I am using arcgis api for javascript 4.29. I have implemented a multipart upload functionality that uploads imagery greater than 3 mb in parts. This works perfectly fine on Arcgis Online but does not work on Enterprise. I am getting a 500 on /commit call without any valid message. It just says 'Error in committing item <item-id>'.
I am using esri/request to make this request.
My code snippet for /commit call is as below
const form = new FormData();
form.append('f', 'json');
form.append('token', token);
esriRequest(layer.url + '/uploads/' + itemID + '/commit', {
body: form,
responseType: 'json',
method: 'post',
timeout: 24000000
})