add overwrite flag in upload, add tags flag in resources_by_tag