Skip to content

Commit ca841a7

Browse files
DOCS-1156: Update README with subdomain examples (uploadcare-ruby)
DOCS-1156: Update README with subdomain examples (uploadcare-ruby)
2 parents f71a9be + c114e57 commit ca841a7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ and [Upload](https://uploadcare.com/api-refs/upload-api/) and [REST](https://upl
110110

111111
You can also find an example project [here](https://github.com/uploadcare/uploadcare-rails-example).
112112

113-
In examples we’re going to use `ucarecdn.com` domain. Check your project's subdomain in the [Dashboard](https://app.uploadcare.com/projects/-/settings/#delivery).
113+
In examples we’re going to use `demo.ucarecd.net` domain. Check your project's subdomain in the [Dashboard](https://app.uploadcare.com/projects/-/settings/#delivery).
114114

115115
### Uploading files
116116

@@ -128,11 +128,11 @@ Using Uploadcare is simple, and here are the basics of handling files.
128128

129129
# URL for the file, can be used with your website or app right away
130130
@uc_file.original_file_url
131-
# => "https://ucarecdn.com/dc99200d-9bd6-4b43-bfa9-aa7bfaefca40/your-file.png"
131+
# => "https://demo.ucarecd.net/dc99200d-9bd6-4b43-bfa9-aa7bfaefca40/your-file.png"
132132

133133
# CDN URL for the file
134134
@uc_file.cdn_url
135-
# => "https://ucarecdn.com/dc99200d-9bd6-4b43-bfa9-aa7bfaefca40/"
135+
# => "https://demo.ucarecd.net/dc99200d-9bd6-4b43-bfa9-aa7bfaefca40/"
136136
#
137137
# With subdomains enabled:
138138
# Uploadcare.config.use_subdomains = true
@@ -262,7 +262,7 @@ File entity contains its metadata. It also supports `include` param to include a
262262
"is_image"=>true,
263263
"is_ready"=>true,
264264
"mime_type"=>"image/jpeg",
265-
"original_file_url"=>"https://ucarecdn.com/FILE_UUID/pineapple.jpg",
265+
"original_file_url"=>"https://demo.ucarecd.net/FILE_UUID/pineapple.jpg",
266266
"original_filename"=>"pineapple.jpg",
267267
"size"=>642,
268268
"url"=>"https://api.uploadcare.com/files/FILE_UUID/",
@@ -520,13 +520,11 @@ Uploadcare::Group.delete(group.id)
520520

521521
# Returns group's CDN URL
522522
@group.cdn_url
523-
# => "https://ucarecdn.com/group-id~2/"
524-
# With subdomains: "https://a1b2c3d4e5.ucarecdn.net/group-id~2/"
523+
# => "https://demo.ucarecd.net/group-id~2/"
525524

526525
# Returns CDN URLs of all files from group without API requesting
527526
@group.file_cdn_urls
528-
# => 'https://ucarecdn.com/0513dda0-582f-447d-846f-096e5df9e2bb~2/nth/0/'
529-
# # With subdomains: 'https://a1b2c3d4e5.ucarecdn.net/0513dda0-582f-447d-846f-096e5df9e2bb~2/nth/0/'
527+
# => 'https://demo.ucarecd.net/0513dda0-582f-447d-846f-096e5df9e2bb~2/nth/0/'
530528
```
531529

532530
#### GroupList

0 commit comments

Comments
 (0)