Add resource_type argument for uploading with url