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

    Jaex

    04/29/2022, 2:46 AM
    but finally managing to successfully upload was so satisfying 😛
  • e

    Erwin

    04/29/2022, 2:47 AM
    So much that! 🙂
  • j

    Jaex

    04/29/2022, 2:48 AM
    i was so worried that amazon gonna release new signatures every year and waste my time implementing them
  • j

    Jaex

    04/29/2022, 2:49 AM
    luckily they stopped at v4
  • e

    Erisa | Support Engineer

    04/29/2022, 3:14 AM
    Not really, we determined later in the conversation that it was because R2 was requiring the signature line to be separated with spaces as well as commas (
    ", "
    ) and that was raised to stop being the case for R2 soon™️ so then it will work with ShareX S3 support
  • e

    Erisa | Support Engineer

    04/29/2022, 3:15 AM
    I got it working by modifying the ShareX code to have a space there, but it soon won't be necessary
  • e

    Erisa | Support Engineer

    04/29/2022, 3:16 AM
    Your code works with basically every other provider so I'm pretty sure it was just R2 being early and doing funny things
  • j

    Jaex

    04/29/2022, 3:18 AM
  • j

    Jaex

    04/29/2022, 3:19 AM
    because i'm also using amazon s3 as my default destination, it is important for me for that destination codes to be flawless
  • v

    Vitali

    04/29/2022, 3:42 AM
    Sorry. The sigv4 expert pointed out a flaw at my initial attempt at a hack so I spent today writing a proper fix. I was in the office today test driving the hybrid thing and wasn't quite as efficient as I would have been from home. I did manage to finish off a more robust cleanup of our code rather than the one-off hack I proposed yesterday & have working tests too. Once the next round of reviews is complete should be good to go. @Jaex I'll double-check tomorrow with Greg if we can get you onboarded.
  • j

    Jaex

    04/29/2022, 3:48 AM
    thanks for letting me know
  • v

    Vitali

    04/29/2022, 6:17 AM
    The rule of thumb is that software that works with AWS S3 should work unmodified with R2 using the S3 compatibility endpoint (barring the application making assumptions based on implementation details of S3 that aren't actually guaranteed in the spec). In other words we intend our S3 API to be a strict superset of AWS (modulo unimplemented features) so where there's a difference it's probably a bug. We have layered in extensions (e.g.
    MERGE
    for the copy directive or supporting unicode metadata values via rfc2047 encoding) but those are intended to be layered in in a non-conflicting way (i.e. you have to opt into using them)
  • d

    Dani Foldi

    04/29/2022, 6:18 AM
    I got no response from Greg 😞
  • s

    sean

    04/29/2022, 9:11 AM
    trying to GET an object using
    @aws-sdk/client-s3
    , however i get
    Copy code
    NoSuchBucket: The specified bucket does not exist.
    error whenever i try to do so. i use
    <BUCKET_NAME>.<ACCOUNT_ID>.r2.cloudflarestorage.com
    as the Bucket entry
  • i

    itsmatteomanf

    04/29/2022, 9:24 AM
    Can somebody help me remember how one does the Secret Key thing with the API Token value? If I have the API Token
    VMMCiqJIEWjnE6RhzMaSJtk8PDjeTON7k4tAdB0M
    (already rolled, no longer valid 😛), what should I do...? Got the ID from the dev tools.
  • a

    albert

    04/29/2022, 9:50 AM
    Copy code
    bash
    $ echo -n 'VMMCiqJIEWjnE6RhzMaSJtk8PDjeTON7k4tAdB0M' | sha256sum
    ecffd7c1ca7219531dae2fa8fc2ff667746744ad0b279a2d84640d72968729a5  -
  • i

    itsmatteomanf

    04/29/2022, 9:51 AM
    And then it’s the ID of the token in the JSON you get at the tokens endpoint?
  • a

    albert

    04/29/2022, 9:52 AM
    Yup!
  • i

    itsmatteomanf

    04/29/2022, 9:52 AM
    And path-style, not vhost?
  • a

    albert

    04/29/2022, 9:52 AM
    yeah, only path style is supported for now
  • i

    itsmatteomanf

    04/29/2022, 9:53 AM
    Gonna try with the ShareX equivalent for Mac which is Dropshare… we’ll see if it works ahah
  • i

    itsmatteomanf

    04/29/2022, 9:53 AM
    Thanks, @albert!
  • v

    Vitali

    04/29/2022, 11:38 AM
    Only path-style addressing is currently supported. So you should be using
    <ACCOUNT_ID>.r2.cloudflarestorage.com/<bucket name>
  • p

    Peps

    04/29/2022, 12:49 PM
    > (can't find these headers with Browser search until you expand it) https://developer.chrome.com/blog/hidden-until-found/ > The
    hidden=until-found
    HTML attribute and
    beforematch
    event can solve these problems. By adding
    hidden=until-found
    to the container for your hidden content, you make it possible for the browser to search text in that hidden region, and reveal the section if a match is found. Seems like it will be possible in the near future with Chrome, and Firefox also has it on their radar to add support for this ( https://bugzilla.mozilla.org/show_bug.cgi?id=1761043 )
  • v

    Vitali

    04/29/2022, 1:04 PM
    Good tip. Do you know if this will apply to the built-in
    <details>
    tag without needing Javascript to hide/expand?
  • v

    Vitali

    04/29/2022, 1:14 PM
    Put up a proposed wording fix here: https://github.com/cloudflare/cloudflare-docs/pull/4255
  • i

    itsmatteomanf

    04/29/2022, 1:17 PM
    Dropshare uses the
    x-amz-acl
    header and the return, as some saw already above, is a 501 not implemented...
  • v

    Vitali

    04/29/2022, 1:31 PM
    I'm pretty sure I fixed that already. Values of `private`/`bucket-owner-read`/and
    bucket-owner-full-control
    are allowed as they don't require any state to be recorded on our end (all these permissions are currently implicitly the same within R2.
  • v

    Vitali

    04/29/2022, 1:32 PM
    Fix should have gone out April 23 around 17:15 UTC (10:15 am PDT)
  • v

    Vitali

    04/29/2022, 1:40 PM
    Please let me know if that's not the case
1...727374...1050Latest