Added ability to upload a single file by setting directly the http body

This fixes my Issue #275 .