Add resource_type argument for uploading with url
Merge pull request #34 from jerome/master

resource_type missing