Try terminating the session, clear cache memory and restart R. You can upload .txt file, there shouldn't be any problem in it.
If problem create different workspace, and try uploading. It should upload in the new workspace, if you are facing this issue in the current on.