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

    Erisa | Support Engineer

    04/29/2022, 5:57 PM
    No, it doesn't. path-based addressing is the only supported format. So
    <account>.r2.cloudflarestorage.com/<bucket>/
  • l

    lmtr0

    04/29/2022, 5:57 PM
    Oh
  • l

    lmtr0

    04/29/2022, 5:57 PM
    so it's a library error then
  • l

    lmtr0

    04/29/2022, 5:57 PM
    oof
  • l

    lmtr0

    04/29/2022, 5:57 PM
    thx
  • l

    lmtr0

    04/29/2022, 6:01 PM
    ok I found a work around
  • l

    lmtr0

    04/29/2022, 6:02 PM
    but now I'm getting bad request......
  • v

    Vitali

    04/29/2022, 6:14 PM
    Is that ask that we implement CORS or that we fail open until we do?
  • v

    Vitali

    04/29/2022, 6:14 PM
    Cause it sounds like the ask is for us to fail open & I think that's likely counter to Cloudflare's security-first mindset.
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 6:15 PM
    Hmm... well.
  • v

    Vitali

    04/29/2022, 6:15 PM
    Or if the ask is "implement CORS" then yes, that's on the roadmap
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 6:16 PM
    I mean, it's the admin API that I think John was talking about.
  • v

    Vitali

    04/29/2022, 6:16 PM
    But as I mentioned we're in feature freeze
  • v

    Vitali

    04/29/2022, 6:16 PM
    What are you calling the admin API?
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 6:16 PM
    Oh, I see, it's just the S3 API calls.
  • j

    john.spurlock

    04/29/2022, 6:16 PM
    while (!ableToWriteAClientSideWebappManagingR2HittingR2Directly) { // add CORS headers }
  • j

    john.spurlock

    04/29/2022, 6:16 PM
    yea since there is no other rest api for managing storage
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 6:16 PM
    Not sure what S3 does... their CORS configuration is for the actual objects I think, not the GET/POST/PUT stuff.
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 6:17 PM
    Like their CORS stuff is if you actually hit the object's URL to retrieve it.
  • v

    Vitali

    04/29/2022, 6:17 PM
    You can use apiv4
  • j

    john.spurlock

    04/29/2022, 6:17 PM
    right, this would be better than amazon's s3
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 6:17 PM
    Not sure if that applies to the API itself.
  • j

    john.spurlock

    04/29/2022, 6:17 PM
    for putting/getting objects?
  • v

    Vitali

    04/29/2022, 6:18 PM
    Putting for sure. For getting it's trivial. The router just isn't hooked up. That's it
  • s

    sean

    04/29/2022, 6:18 PM
    is multipart/form-data supported when uploading to R2 endpoint yet? receiving 500 internal error when i attempt
  • j

    john.spurlock

    04/29/2022, 6:18 PM
    is that avail now? i just saw create bucket
  • v

    Vitali

    04/29/2022, 6:18 PM
    Yes. If you look at the API calls the browser is making to upload you'll see it. There's no multipart upload
  • v

    Vitali

    04/29/2022, 6:19 PM
    And that API is limited to 300MB currently
  • v

    Vitali

    04/29/2022, 6:19 PM
    (will be lifting that within the next month or two hopefully)
  • v

    Vitali

    04/29/2022, 6:19 PM
    Can you DM me your account?
1...777879...1050Latest