Click on the file or folder, but don't open it. Options such as 'View', 'Share', 'Rename', etc. will show up at the top of the file browser. Click 'Rename' then rename the file with the desired name. 

Did this answer your question?