Search
Setup for Free
CD
Cloudflare Developers
what parameters did you sign it with
Original message was deleted
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,420
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Y
YZ
•
11/12/24, 4:18 PM
$adapter
=
S
t
o
r
a
g
e
:
:disk
(
's3
'
)
-
>getDriver
(
)
-
>getAdapter
(
)
;
$s3
_client
=
$adapter
-
>getClient
(
)
;
$cmd
=
$s3
_client
-
>getCommand
(
'PutObject
'
,
[
'Bucket
'
=
>
$adapter
-
>getBucket
(
)
,
'Key
'
=
>
$file
_key
,
'ContentType
'
=
>
$content
_type
,
]
)
;
$request
=
$s3
_client
-
>createPresignedRequest
(
$cmd
,
'
+2 minutes
'
)
;
Y
YZ
•
11/12/24, 4:18 PM
Thanks Space
. Here are the parameters I sued
Y
YZ
•
11/12/24, 4:20 PM
And here are my CORS policy settings
[
{
"AllowedOrigins
"
:
[
"
*
"
]
,
"AllowedMethods
"
:
[
"GET
"
,
"PUT
"
,
"POST
"
,
"HEAD
"
]
,
"AllowedHeaders
"
:
[
"Content
-Type
"
]
,
"ExposeHeaders
"
:
[
"ETag
"
]
,
"MaxAgeSeconds
"
: 600
}
]
Y
YZ
•
11/12/24, 4:21 PM
curl
-v
-
-request PUT
$PURL
-
-header
"Content
-Type
: image
/png
"
-
-data
"123khkfahdfaadlfaaldkfjlaadf
"
Y
YZ
•
11/12/24, 4:22 PM
this worked on the server where the pre
-signed url was requested
. However
, it didn
't work on my local terminal
Y
YZ
•
11/12/24, 4:25 PM
good call
. Let me give it a shot
Y
YZ
•
11/12/24, 4:38 PM
Where to check that
?
Y
YZ
•
11/12/24, 4:42 PM
On the R2 settings page
, I only see Public access
. Currently I have enabled Custom domains and disabled R2
.dev subdomain
.
Y
YZ
•
11/12/24, 5:02 PM
ah I see
. you
're right
Y
YZ
•
11/12/24, 5:03 PM
I thought that
's only for the host that creates the presigned url
. and doesn
't apply to the browswer end machines that use the url
Y
YZ
•
11/12/24, 5:07 PM
I removed the ip block from the api token
, but I
'm still getting the same error
. Wondering if the setttings take some time to propagate
?
Y
YZ
•
11/12/24, 5:10 PM
I
'll try it
. Thanks
. But it
's very likely the ip restriction caused the problem
.
Y
YZ
•
11/12/24, 5:19 PM
still the same error with a new api key
. I
'll try it later today
.
Y
YZ
•
11/12/24, 5:19 PM
thanks man
!
Y
YZ
•
11/13/24, 6:08 AM
It works now
. Thanks
@Space
!