Allow uploading of files on API >= 21. Fixes https://redmine.stoutner.com/issues/1