Allow file type to be specified for upload uri

@alex-deaconu please review