https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • j

    Jacob | Pages

    03/10/2023, 3:53 AM
    That’s odd.. what’s your AWS cli command?
  • p

    pedrocx486

    03/10/2023, 3:54 AM
    Copy code
    aws s3 cp $1 s3://cdn/ --endpoint-url https://ACCOUNT_ID_REMOVED.r2.cloudflarestorage.com
  • p

    pedrocx486

    03/10/2023, 3:55 AM
    The $1 is a bash arg I use when inside an .sh script, but outside I just pass the file path directly
  • p

    pedrocx486

    03/10/2023, 3:56 AM
    Happens both inside the .sh and outside
  • p

    pedrocx486

    03/10/2023, 3:56 AM
    My CLI my be broken 😦
  • j

    Jacob | Pages

    03/10/2023, 3:56 AM
    Huh I would think that would work… for now you might check out rclone as a workaround
  • p

    pedrocx486

    03/10/2023, 3:57 AM
    Yep, have it installed, will configure it
  • p

    pedrocx486

    03/10/2023, 3:57 AM
    Thanks for the test and patience with me
  • j

    Jacob | Pages

    03/10/2023, 3:58 AM
    np! 🙂
  • c

    chientrm

    03/10/2023, 7:04 AM
    does http
    Range
    header work with R2? 🤔
  • c

    chientrm

    03/10/2023, 7:04 AM
    ex client want to download from the bytes 2000 and so on.
  • k

    kian

    03/10/2023, 9:22 AM
    Yes
  • e

    elithrar

    03/10/2023, 12:00 PM
    Is the content-type correct?
  • z

    Zeblote

    03/10/2023, 1:41 PM
    unless it's behind a custom domain with caching enabled and the file is larger than the max cacheable size
  • c

    Celareon

    03/10/2023, 3:59 PM
    I could not find this, but does R2 store exif data? If so, can it be stripped when retrieving? But at the same time keeping it in the bucket
  • k

    kian

    03/10/2023, 4:05 PM
    I'd expect it to be included as it's just part of the file
  • z

    Zeblote

    03/10/2023, 4:08 PM
    it doesn't modify the files in any way beyond compression
  • z

    Zeblote

    03/10/2023, 4:08 PM
    so removing that would be on you
  • c

    Chaika

    03/10/2023, 4:09 PM
    Although it may be worth mentioning, if you are using a Custom domain on your bucket, Cloudflare Polish does remove Exif data
  • c

    Chaika

    03/10/2023, 4:09 PM
    https://developers.cloudflare.com/images/polish/compression/
  • z

    Zeblote

    03/10/2023, 4:11 PM
    that says it doesn't work if you send vary header
  • z

    Zeblote

    03/10/2023, 4:11 PM
    so need extra firewall rule to guard it
  • z

    Zeblote

    03/10/2023, 4:12 PM
    or is it on the response rather than the request?
  • c

    Chaika

    03/10/2023, 4:13 PM
    Vary should be on the response iirc
  • z

    Zeblote

    03/10/2023, 4:14 PM
    when I was testing it it a while back it served the original image on first request and the modified one from the second onwards, like it was compressing it async and then replacing the file in cache
  • c

    Chaika

    03/10/2023, 4:14 PM
    I wasn't sure if this would actually apply to Buckets, but it looks like it does
  • z

    Zeblote

    03/10/2023, 4:15 PM
    but presumably hiding metadata needs to be reliably applied always
  • c

    Chaika

    03/10/2023, 4:16 PM
    It's only on cached responses yea
  • c

    Chaika

    03/10/2023, 4:16 PM
    iirc don't range requests have the same quirk?
  • z

    Zeblote

    03/10/2023, 4:16 PM
    the issue with range requests is they don't work at all if the file is too big to be cached
1...939940941...1050Latest