KRACOEUS-8152 fix for concurrency issues in file upload

We could add a check in rice and remove this one probably