Hi, I'm adding a file from my bitbucket repo to my R2 bucket using wrangler in a pipeline. The line
Hi, I'm adding a file from my bitbucket repo to my R2 bucket using wrangler in a pipeline. The line in the pipeline which adds it is this:
npx wrangler r2 object put bucket-name/$CLOUDFLARE_BUCKET_TOKEN object-cache-latest.zip --file object-cache-latest.zip
Everything works great except, the file in the bucket is named some random string of numbers and characters instead of "object-cache-latest.zip". The file itself is the correct file, and it is going to the correct bucket, only the filename is wrong.
Why is this happening? How can I fix it?
npx wrangler r2 object put bucket-name/$CLOUDFLARE_BUCKET_TOKEN object-cache-latest.zip --file object-cache-latest.zip
Everything works great except, the file in the bucket is named some random string of numbers and characters instead of "object-cache-latest.zip". The file itself is the correct file, and it is going to the correct bucket, only the filename is wrong.
Why is this happening? How can I fix it?









