haha
(user494)
1
Hello everyone, thanks for your time.
After setting Cloudflare R2 on my discourse, I can’t upload photo in creating topic, here is my setting:
I confirm I use the Account API Tokens(it’s active), not User API Tokens. Permission is Object Read & Write.
And I have set custom domain for the uploads bucket, it’s active:
And set the CORS Policy:
But I can’t upload photos after setting all above. Anyone can help to solve it? Many thanks!
haha
(user494)
2
here is custom domain and CORS setting
Lilly
(Lillian )
3
- you should set the region to
US East (N. Virginia):
- does your CORS policy on cloudflare via json looks like this? you need the
ETag exposed header.
[
{
"AllowedOrigins": [
"https://forum.example.com"
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE",
"HEAD"
],
"AllowedHeaders": [
"*"
],
"ExposeHeaders": [
"ETag"
],
"MaxAgeSeconds": 3000
}
]
Lilly
(Lillian )
4
btw, you should follow this documentation here exactly: Configure an S3 compatible object storage provider for uploads