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

    leonardwongly

    05/10/2023, 2:15 PM
    Thank you for bringing what I need next!! Now I just need early access

    https://cdn.discordapp.com/attachments/940663374377783388/1105860612438896702/IMG_0013.png▾

  • a

    AlHill

    05/10/2023, 2:16 PM
    And why does it match with GET method and doesn't with DELETE if the code is just the same?
  • u

    Unsmart | Tech debt

    05/10/2023, 2:23 PM
    I just tested and a presigned delete works just fine 🤷
  • a

    AlHill

    05/10/2023, 3:12 PM
    Can you share the code? IDK what it's failing in mine 😦
  • u

    Unsmart | Tech debt

    05/10/2023, 3:12 PM
    Copy code
    ts
    import { Hono } from 'hono'
    import { AwsClient } from 'aws4fetch'
    
    const app = new Hono()
    
    app.get('/delete-url', async c => {
        const client = new AwsClient({
            accessKeyId: c.env.R2_ACCESS_KEY_ID,
            secretAccessKey: c.env.R2_SECRET_ACCESS_KEY
        })
    
        const { url } = await client.sign(`${c.env.R2_BUCKET_URL}/${c.req.query('file')}`, {
            method: 'DELETE',
            aws: { signQuery: true }
        })
    
        return c.json({ url })
    })
    
    export default app
  • a

    AlHill

    05/10/2023, 3:42 PM
    Presigned or not, if you generate a DELETE presigned URL you have to attack it with method DELETE and not GET
  • a

    AlHill

    05/10/2023, 3:42 PM
    my fault, thanks ppl
  • d

    denisep

    05/10/2023, 4:16 PM
    Hi y'all! I've launched a survey to get your feedback on the R2 documentation. Email addresses will not be captured and it should take about 3 minutes or less to complete. Your feedback is much appreciated and will help us improve the documentation. Thanks so much for your time! https://docs.google.com/forms/d/e/1FAIpQLScaVrdZh2PoZFvJGFPyMthuGVvKpQvoPfZ-BxIJ4Q5zsQebDA/viewform
  • k

    kian

    05/10/2023, 4:22 PM
  • v

    Vero 🐙

    05/10/2023, 4:25 PM
    @User
  • i

    itsme

    05/10/2023, 7:05 PM
    hi sid i generated a presigned url to get a file. and now i want to make download link. i did Download btn. but it redirects to cloudflare link not downloading the file.
  • a

    aarhus

    05/10/2023, 9:03 PM
    Evening! I know I remember seeing it mentioned, but how long after a lifecycle rule is applied does it kick in?
  • d

    Dani Foldi

    05/10/2023, 9:04 PM
    Quoting from the docs: > Objects will typically be removed from a bucket within 24 hours of the x-amz-expiration value. > When a new lifecycle policy is applied, newly uploaded objects’ x-amz-expiration value immediately reflects the expiration based on the new rules, but existing objects may experience a delay. Most objects will be transitioned within 24 hours but may take longer depending on the number of objects in the bucket. While objects are being migrated, you may see old applied rules from the previous policy.
  • d

    Dani Foldi

    05/10/2023, 9:05 PM
    (https://developers.cloudflare.com/r2/buckets/object-lifecycles/)
  • a

    aarhus

    05/10/2023, 9:05 PM
    I had just found it! Thank you
  • r

    Ryuntai

    05/10/2023, 9:26 PM
    Our server is 10gig port but 8MB file take around 1 minute and 2 seconds to upload to R2-bucket... any idea what is going on? ( it was never like that before )
  • r

    Ryuntai

    05/10/2023, 9:26 PM

    https://cdn.discordapp.com/attachments/940663374377783388/1105969175635181610/image.png▾

  • r

    Ryuntai

    05/10/2023, 9:27 PM

    https://cdn.discordapp.com/attachments/940663374377783388/1105969510239973426/image.png▾

  • a

    Allen

    05/10/2023, 9:38 PM
    Hey everybody! Current S3 user here, considering R2 as an alternative. I was looking at this blog post from a few months back: https://blog.cloudflare.com/cloudflare-r2-super-slurper/ and it looks promising. However, I'm not sure what the current state of development is. Poking around a bit it seems that there's a R2 migrator in beta, but does anybody have any info on the availability of the "Automatic sip by sip migration" feature that the blog post mentions?
  • k

    kian

    05/10/2023, 9:42 PM
    I haven’t heard anything about that personally.
  • r

    Ryuntai

    05/10/2023, 9:42 PM
    Can you please consider my question above? thank you
  • z

    Znuff

    05/11/2023, 2:47 AM
    So, are there any ToS enforceable limits on R2 downloads from a bucket?
  • z

    Znuff

    05/11/2023, 2:48 AM
    Let's say, absurdly, that I store large files and I access privately from multiple locations and I hit bw requirements of 20+ Gbit/s
  • z

    Znuff

    05/11/2023, 2:48 AM
    Would that be an issue?
  • k

    Karew

    05/11/2023, 3:01 AM
    R2 has an addendum in the TOS that lets you cache and transmit any file types, since you are paying for the R2 storage and operations. I would expect a call from Cloudflare sales if you go insane with bandwidth though. Make sure to set up strong Cache Rules for your R2 domain.
  • a

    aydyn

    05/11/2023, 4:30 AM
    sorry if this is the wrong channel but i’m pretty new to most cloudflare products outside of workers, pages, and kv, and was wondering if there was any good examples showing the differences between kv, r2, do, and possibly d1 :)
  • a

    aydyn

    05/11/2023, 4:31 AM
    maybe something for queues vs pubsub as well but i feel like each has a more clear cut use case
  • c

    Chaika

    05/11/2023, 4:33 AM
    There's a nice overview here: and a comparsion table at the end (might be worth keeping in mind D1 is in Alpha and not ready for production use at all)
  • a

    aydyn

    05/11/2023, 4:36 AM
    thanks, although i have a question about all of this to make sure i understand it
  • a

    aydyn

    05/11/2023, 4:37 AM
    what would be the best storage for something like
1...101610171018...1050Latest