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

    Wojciech

    03/21/2023, 8:17 AM
    thanks!
  • z

    Zeblote

    03/21/2023, 12:53 PM
    no, but you can put the bigger files in a separate folder so a cache rule can be applied to them
  • a

    aeharding

    03/21/2023, 1:22 PM
    It's an r2 issue because using a custom domain is necessary for production setups (as per the r2 documentation)
  • z

    Zeblote

    03/21/2023, 1:29 PM
    enabling caching is not though
  • e

    Erisa | Support Engineer

    03/21/2023, 1:34 PM
    Its a cache issue because the team that would be debugging and pushing a fix would be the cache team, we have many products that rely on other products so its easy to get confused
  • e

    Erisa | Support Engineer

    03/21/2023, 1:36 PM
    That said - has someone tested this with an origin setup?
  • a

    aeharding

    03/21/2023, 2:14 PM
    I see. Is there a good channel or place to submit bugs for this product?
  • e

    Erisa | Support Engineer

    03/21/2023, 2:17 PM
    Support ticket or the Community is usually the best place
  • l

    Luuc

    03/21/2023, 3:24 PM
    Hello, how to upload files larger than 315MB
  • z

    zegevlier

    03/21/2023, 3:28 PM
    Try using rclone
  • z

    zegevlier

    03/21/2023, 3:28 PM
  • d

    duffann

    03/21/2023, 3:29 PM
    Hello guys. I have a question. If a video download link is posted on twitter that is hosted on r2, if the user clicks directly from tiwtter which opens twitter's in app browser, the video is being loaded instead of starting the download even if we set --header-upload 'Content-Disposition: attachment; .... any ideas??
  • d

    duffann

    03/21/2023, 3:33 PM
    There are no issues on regular browsers.
  • h

    HardAtWork

    03/21/2023, 3:35 PM
    Twitter probably runs a media proxy, which means any headers you set may not be received by the client
  • d

    duffann

    03/21/2023, 3:36 PM
    thanks for the answer. any way to deail with it or nothing to do ?
  • h

    HardAtWork

    03/21/2023, 3:36 PM
    Offer an interstitial page of some kind?
  • d

    duffann

    03/21/2023, 3:38 PM
    If I set window.location to r2 video with javascript, when user clicks on the link video starts to download on background but user do not understand that video is downloading or loading on background so they think the link is not working ( espeically if the video is large)
  • d

    duffann

    03/21/2023, 3:38 PM
    I tried to set a loader but window.location breaks it i tink
  • c

    Crazy Rabbit

    03/21/2023, 3:41 PM
    What would be the best way to serve fallback image?
  • c

    Crazy Rabbit

    03/21/2023, 3:42 PM
    One option is to upload template image (default avatar) every time someone register.
  • c

    Crazy Rabbit

    03/21/2023, 3:42 PM
    But this would be waste of storage
  • c

    Crazy Rabbit

    03/21/2023, 3:43 PM
    Another option is to use workers to server images, but this would increase the cost.
  • b

    buckett

    03/21/2023, 3:47 PM
    If I apply an object lifecycle to a bucket is it possible to find out when an object is going to expire by using the workers binding of R2?
  • h

    HardAtWork

    03/21/2023, 4:03 PM
    Use a Gravatar service, and then cache it?
  • h

    HardAtWork

    03/21/2023, 4:04 PM
    Might be able to get a Workers-compatible one too somewhere
  • c

    Crazy Rabbit

    03/21/2023, 4:08 PM
    I will be storing banners. So Gravatar wouldn't work here.
  • c

    Crazy Rabbit

    03/21/2023, 4:08 PM
    avatars was just a simple example for easier understanding and creating accounts.
  • h

    HardAtWork

    03/21/2023, 4:19 PM
    You could probably just have a single default banner?
  • c

    Crazy Rabbit

    03/21/2023, 4:30 PM
    basically with API:
    domain.com/v1/servers/banner/543
  • c

    Crazy Rabbit

    03/21/2023, 4:30 PM
    543 is the banner id
1...953954955...1050Latest