KRACOEUS-8152 fix for concurrency issues in file upload

wow, why are we having to do this here? Can we look at fixing this in Rice?