Fixed a bug with uploading and creating a new file in the portal profiles