Added file uploads from l3iggs patch:

This is just a pull-request version of @l3iggs's patch from the following comment.

https://github.com/gollum/gollum/issues/694#issuecomment-18249585