Fixed issues with uploading files, and downloading files