fix upload to /Shared

write the part file to the users root folder if the updated file is located in /Shared because we can't create new files in Shared/

This should fix issue #5126