Skip to content

Commit 1d23b87

Browse files
[R2] Creating a chapter for viewing objects in R2 (#22928)
* Creating a new file to explain viewing objects with a / in the name. * Catching typo. * Apply suggestions from code review Co-authored-by: Kate Tungusova <[email protected]> * Update src/content/docs/r2/objects/view-objects.mdx * Update src/content/docs/r2/objects/view-objects.mdx Co-authored-by: Kate Tungusova <[email protected]> * Deleting "View Objects", relocating to troubleshooting --------- Co-authored-by: Kate Tungusova <[email protected]>
1 parent 39fb3b2 commit 1d23b87

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

src/content/docs/r2/platform/troubleshooting.mdx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: Troubleshooting
44

55
---
66

7+
import { FileTree } from "~/components";
8+
79
## Troubleshooting 403 / CORS issues with R2
810

911
If you are encountering a CORS error despite setting up everything correctly, you may follow this troubleshooting guide to help you.
@@ -60,4 +62,24 @@ If your users are directly uploading to the bucket (for example, using the S3 or
6062

6163
### Bucket sharding
6264

63-
For higher capacity at the cost of added complexity, consider bucket sharding. This approach distributes reads and writes across multiple buckets, reducing the load on any single bucket. While sharding cannot prevent a single hot object from exhausting capacity, it can mitigate the overall impact and improve system resilience.
65+
For higher capacity at the cost of added complexity, consider bucket sharding. This approach distributes reads and writes across multiple buckets, reducing the load on any single bucket. While sharding cannot prevent a single hot object from exhausting capacity, it can mitigate the overall impact and improve system resilience.
66+
67+
## Objects named `This object is unnamed`
68+
69+
In the Cloudflare dashboard, you can choose to view objects with `/` in the name as folders by selecting **View prefixes as directories**.
70+
71+
For example, an object named `example/object` will be displayed as below.
72+
73+
<FileTree>
74+
- example
75+
- object
76+
</FileTree>
77+
78+
Object names which end with `/` will cause the Cloudflare dashboard to render the object as a folder with an unnamed object inside.
79+
80+
For example, uploading an object named `example/` into an R2 bucket will be displayed as below.
81+
82+
<FileTree>
83+
- example
84+
- `This object is unnamed`
85+
</FileTree>

0 commit comments

Comments
 (0)