Search
Star
1.4k
Feedback
Setup for Free
CD
Cloudflare Developers
•
3y ago
•
4 replies
Harris
R2 S3-API code
I feel like I must be doing something wrong if I have to do this
const key = parsedUrl.pathname.split('/').slice(2).join('/');
const key = parsedUrl.pathname.split('/').slice(2).join('/');
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
84,117
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
const
key
=
parsedUrl.pathname.
split
(
'/'
).
slice
(
2
).
join
(
'/'
);
const
key
=
parsedUrl.pathname.
split
(
'/'
).
slice
(
2
).
join
(
'/'
);
Similar Threads
R2 S3 API Custom Domain
CD
Cloudflare Developers / general-help
16mo ago
R2 - S3
CD
Cloudflare Developers / r2
3y ago
R2, S3
CD
Cloudflare Developers / r2
3y ago
API support for creating R2 S3 credentials
CD
Cloudflare Developers / general-help
2y ago