Upload a file to a repository