Fixes #7915 - copy uploaded files to shared tmp directory in plan phase