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

    Unsmart | Tech debt

    03/30/2023, 9:02 PM
    They either just copy pasted the message or whatever tool you are using default to that message or something but its not integrated with AWS other than using the same API schema
  • w

    Waiiki

    03/30/2023, 9:03 PM
    Copy code
    https://test-bucket.s3.amazonaws.com/
  • u

    Unsmart | Tech debt

    03/30/2023, 9:03 PM
    thats an aws s3 url not an r2 url
  • w

    Waiiki

    03/30/2023, 9:04 PM
    ahh. Yeah I got the nuget package for .net S3
  • w

    Waiiki

    03/30/2023, 9:04 PM
    and it generates it like that
  • w

    Waiiki

    03/30/2023, 9:04 PM
    Amazon.S3
  • k

    kian

    03/30/2023, 9:04 PM
    https://developers.cloudflare.com/r2/examples/aws/aws-sdk-net/
  • r

    rickyrobinett

    03/30/2023, 9:10 PM
    Hey Folks - Not the exact way I wanted to introduce myself, but “hi”. I’m Ricky, and I joined Cloudflare on Monday as a member of the Developer Relations team. I wanted to give you all a quick update on what’s been going on with zone plans and R2. We have tooling that protects our network and the quality of service for our users, but we've found that it wasn't tuned properly for our new developer platform services. Candidly, this tooling was too aggressive, and we’ve put a fix in place now. We recognize as a developer platform, blocking traffic to valid production applications is unacceptable. We know many of you in the community have experienced problems with actions taken that disrupt interactions between your zone plan and R2. We've heard your frustrations and we’ve been too slow to fix it. From our founder Matthew to our networking and infrastructure teams, everyone is focused on solving this problem immediately. We truly apologize for the pain and confusion this tooling has caused. Please stay tuned for additional updates. If any developer in our community encounters this again, which should not happen, please immediately forward to Aly (aly@cloudflare.com) and me (rrobinett@cloudflare.com) and we will take the lead on resolving this for you so you don’t have to navigate any red tape.
  • k

    Karbust

    03/30/2023, 10:08 PM
    Anyone has an update on this? Not having any kind on integrity check is not good... https://community.cloudflare.com/t/does-r2-support-checksum-when-uploading-doesnt-seem-so/488674
  • g

    gautam32

    03/31/2023, 1:37 AM
    Uploading to r2 is changing the creation date of the file. How can I preserve it? Thanks
  • c

    chientrm

    03/31/2023, 1:38 AM
    append date to file name? 🤔
  • g

    gautam32

    03/31/2023, 1:44 AM
    when i upload the file to r2 in Object Details the Date Created is 2023-03-31T06:52:13+05:30. While in local storage its different 28 April 2022 at 11:46 PM.
  • d

    Deleted User

    03/31/2023, 1:55 AM
    The object details simply states when it was created/uploaded to R2
  • d

    Deleted User

    03/31/2023, 1:56 AM
    to manage when the file was actually created in the universe you can add it to the file name and pull it off of that as chientrm mentioned
  • e

    Erisa | Support Engineer

    03/31/2023, 1:56 AM
    you can attach custom metadata if that suits your needs
  • e

    Erisa | Support Engineer

    03/31/2023, 1:57 AM
    customMetadata: { "realDateIPromise": "2022-04-28T23:46:00+05:30" }
  • g

    gautam32

    03/31/2023, 3:14 AM
    Thanks, i solved it using rclone with -metadata flag
  • b

    bubble_tea

    03/31/2023, 7:03 AM
    hello everyone, if I want to cancel r2 storage but my bucket already contains files, how do I cancel the bucket? or can I just delete the bucket?
  • h

    HardAtWork

    03/31/2023, 7:18 AM
    You have to delete the files in the bucket first. You can do it manually, or with a tool like
    rclone
    .
  • b

    bubble_tea

    03/31/2023, 7:21 AM
    oh i see, thank you
  • d

    dav1d

    03/31/2023, 7:44 AM
    I was getting a few Internal Server errors and connection abort errors from R2 workers API, I've added retries, but they are still showing up in my logs. Is there anything I can do?
  • w

    Waiiki

    03/31/2023, 8:03 PM
    Copy code
    access to fetch at ... from origin 'http://localhost:3001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
  • w

    Waiiki

    03/31/2023, 8:03 PM
    My cors policy:
    Copy code
    [
      {
        "AllowedOrigins": [
          "http://localhost:3001"
        ],
        "AllowedMethods": [
          "GET",
          "PUT",
          "POST"
        ]
      }
    ]
  • w

    Waiiki

    03/31/2023, 8:04 PM
    I'm trying to put with a presign, any idea how I can fix this? Is my cors policy correct?
  • w

    Waiiki

    03/31/2023, 8:14 PM
    Copy code
    "AllowedHeaders": [
          "Access-Control-Allow-Origin"
        ]
    adding this doesn't work either
  • n

    not_james-Brown

    03/31/2023, 8:18 PM
    Howdy! Im using a worker (bound to my r2 bucket) to handle user uploads to r2. What's the recommended way to limit file size? Do I need to use presigned urls for that, or is there another way?
  • w

    Waiiki

    03/31/2023, 8:46 PM
    do I need to enable R2.dev subdomain to test or something?
  • w

    Waiiki

    03/31/2023, 8:46 PM
    with localhost
  • w

    Waiiki

    03/31/2023, 8:47 PM
    This is my Cors policy
  • w

    Waiiki

    03/31/2023, 9:26 PM
    Copy code
    [
      {
        "AllowedOrigins": [
          "http://localhost:3001"
        ],
        "AllowedMethods": [
          "GET",
          "PUT",
          "POST",
          "DELETE"
        ],
        "AllowedHeaders": [
          "Authorization",
          "Access-Control-Allow-Origin",
          "Origin"
        ],
        "ExposeHeaders": [
          "Access-Control-Allow-Origin",
          "Access-Control-Allow-Credentials"
        ]
      }
    ]
    >.<
1...970971972...1050Latest