Adds fixes to allow for the upload of non-images
Merge pull request #22 from tc-mccarthy/tcS3_issue21

Adds fixes to allow for the upload of non-images