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

    Kinuseka

    04/02/2023, 3:49 AM
    A major bug is that cloudflare at the current state currently cannot distinguish between normal proxy requests vs R2 requests. This can cause you to unknowingly violate ToS 2.8. Although it is getting worked on at the moment which is great.
  • u

    Unsmart | Tech debt

    04/02/2023, 3:50 AM
    That is fully fixed as of like 2 days ago yeah 😛
  • k

    Kinuseka

    04/02/2023, 3:51 AM
    that is great to hear, 👍
  • a

    aeharding

    04/02/2023, 4:06 AM
    tbf it's not technically a bug with r2, but the proxy that r2 custom domain uses
  • k

    Kinuseka

    04/02/2023, 4:07 AM
    I see. Have you found any workarounds for this issue?
  • a

    aeharding

    04/02/2023, 4:09 AM
    Yes, you can disable the caching, that fixes the issue (but you don't get the benefits of caching)
  • k

    Kinuseka

    04/02/2023, 4:15 AM
    Great, this seems to have mitigated the issue at this moment of time. Thanks
  • u

    Unsmart | Tech debt

    04/02/2023, 4:41 AM
    if you happen to be in a position you can use any path for a file and it not matter you could check the size of the file during upload and put it under a specific path that you turn cache off so you still get cache on small files 🤷
  • c

    chientrm

    04/02/2023, 4:56 AM
    can I read/write only metadata from R2 object?
  • c

    chientrm

    04/02/2023, 4:59 AM
    oh, it doesn't get the whole blob by the
    get
    .
  • e

    Erisa | Support Engineer

    04/02/2023, 8:06 AM
    You can read only metadata using .head(), not sure about write thhough
  • l

    lawrence

    04/02/2023, 8:27 AM
    how to delete?
  • e

    Erisa | Support Engineer

    04/02/2023, 8:28 AM
    Remove all objects from the bucket first
  • l

    lawrence

    04/02/2023, 8:29 AM
    R2 does not allow deleting folders
  • l

    lawrence

    04/02/2023, 8:29 AM
    too many files
  • l

    lawrence

    04/02/2023, 8:30 AM
  • l

    lawrence

    04/02/2023, 8:31 AM
  • l

    lawrence

    04/02/2023, 8:34 AM
    how to delete all objects......
  • c

    chientrm

    04/02/2023, 8:35 AM
    can use aws cli?
  • l

    lawrence

    04/02/2023, 8:37 AM
    i can't
  • e

    Erisa | Support Engineer

    04/02/2023, 9:26 AM
    Yes: https://developers.cloudflare.com/r2/examples/aws/aws-cli/
  • e

    Erisa | Support Engineer

    04/02/2023, 9:26 AM
    Can also use rclone for deleting files:
  • l

    lawrence

    04/02/2023, 11:25 AM
    Why is there no "Empty Bucket" option?
  • l

    lawrence

    04/02/2023, 11:26 AM
    like AWS S3
  • l

    lawrence

    04/02/2023, 11:28 AM
    it's not efficient
  • k

    Karew

    04/02/2023, 11:31 AM
    AWS's empty bucket tool does the same thing, if you have a lot of objects you have to wait for hours while the objects are deleted in sequence
  • k

    Karew

    04/02/2023, 11:31 AM
    You can also set an R2 lifecycle rule on the bucket to delete all of the contents, it will empty itself within 24 hours and you don't have to monitor a process
  • h

    HardAtWork

    04/02/2023, 11:53 AM
    Lifecycle rules aren’t retroactively applied though, no?
  • k

    Karew

    04/02/2023, 11:54 AM
    They are
  • d

    dav1d

    04/02/2023, 2:06 PM
    with rclone you can try to increase --transfers and --checkers
1...973974975...1050Latest