Fixed issue with uploading files in the root profile directory