Galaxy allows you to create new files from the upload menu. You can supply the contents of the file.
Click galaxy-upload Upload Data at the top of the tool panel
Select galaxy-wf-edit Paste/Fetch Data at the bottom
Paste the file contents into the text field
Press Start and Close the window