@cajazzer thanks for pointing me in the right direction. Yes I see now its in:
@strapi/strapi/lib/services/entity-service/index.js
if (files && Object.keys(files).length > 0) {
await this.uploadFiles(uid, entity, files);
entity = await this.findOne(uid, entity.id, wrappedParams);
}
Which uses @strapi/strapi/lib/services/utils/upload-file.js
I’ll try creating a patch to fix it and can raise a PR