mattw
02/24/2023, 2:14 PMaeharding
02/24/2023, 2:29 PMmattw
02/24/2023, 3:02 PMSid | R2
02/24/2023, 3:04 PMPutObjectAcl
, your command ends up looking like a PutObject
to us, so your video file gets replaced by the PutObjectAcl
request's XML body, and your video file gets "corrupted".
I can perhaps send back a 501 when we detect this so that your AWS client at least fails instead of overwriting your object.Zeblote
02/24/2023, 3:06 PMSomethingElse
call a shorter api Something
instead of failing ?Sid | R2
02/24/2023, 3:09 PMPutObjectAcl
calls the same endpoint as PutObject
, just with an extra query param, and we weren't even looking for that query paramaeharding
02/24/2023, 3:12 PMCubityFirst
02/24/2023, 3:56 PMCubityFirst
02/24/2023, 3:56 PMCubityFirst
02/24/2023, 3:57 PMCubityFirst
02/24/2023, 3:57 PMDeleted User
02/24/2023, 4:00 PMππππ γγ
02/24/2023, 4:05 PMgolyalpha
02/24/2023, 4:07 PMmc rm --recursive --force [storage_prefix]/[bucket]
golyalpha
02/24/2023, 4:07 PMππππ γγ
02/24/2023, 4:08 PMgolyalpha
02/24/2023, 4:09 PMgolyalpha
02/24/2023, 4:09 PMππππ γγ
02/24/2023, 4:09 PMππππ γγ
02/24/2023, 4:15 PMgolyalpha
02/24/2023, 4:17 PMmc alias set r2 [R2_URL_WITHOUT_BUCKET] [R2_ACCESS_KEY] [R2_SECRET_KEY]
after which you'll be able to do
mc rm --recursive --force r2/[BUCKET_NAME]
golyalpha
02/24/2023, 4:18 PMgolyalpha
02/24/2023, 4:18 PMππππ γγ
02/24/2023, 4:19 PMgolyalpha
02/24/2023, 4:19 PMππππ γγ
02/24/2023, 4:20 PMgolyalpha
02/24/2023, 4:24 PMgolyalpha
02/24/2023, 4:24 PM