Fixing Repository file upload