accept file object in the upload method
Merge pull request #42 from eriksson/fileobj-upload

accept file object in the upload method