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

    john.spurlock

    04/29/2022, 6:19 PM
    cool i will take a look - but cf rest api is not avail over CORS either iirc : (
  • s

    sean

    04/29/2022, 6:20 PM
    dm'd it yesterday
  • v

    Vitali

    04/29/2022, 6:20 PM
    Oh sorry. Hard to keep track of everyone. Can you try your request again?
  • s

    sean

    04/29/2022, 6:20 PM
    actually wait- false alarm
  • v

    Vitali

    04/29/2022, 6:21 PM
    Can't read from request stream because client disconnected.
  • v

    Vitali

    04/29/2022, 6:21 PM
    We need to return a better error here
  • v

    Vitali

    04/29/2022, 6:22 PM
    Can you tell me what your issue was? I'm trying to wrap my head around how this is getting generated
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 6:23 PM
    If you're making a webapp Pages Functions are like the perfect thing for that, since they don't need to pay attention to CORS.
  • s

    sean

    04/29/2022, 6:23 PM
    when attempting to upload to R2 but GET is used instead of POST, it throws an internal error
  • s

    sean

    04/29/2022, 6:23 PM
    made that simple mistake just now
  • v

    Vitali

    04/29/2022, 6:23 PM
    Very strange. We definitely don't have this use-case tested
  • j

    john.spurlock

    04/29/2022, 6:34 PM
    yes any proxy in the middle works from a tech point of view, but it shouldn't be necessary, and you don't want to proxy even signed calls (as the user) through a 3rd party. remember the scenario here is a r2 storage management app that you could store your creds locally (never leave the browser) and hit cf directly for all storage mgmt operations
  • j

    john.spurlock

    04/29/2022, 6:36 PM
    since ppl use rclone here, think rclone in the browser
  • j

    john.spurlock

    04/29/2022, 6:38 PM
    browser apis can do a great job of every part of this, but are currently hamstrung by cors when hitting the s3 api (or the cf rest api for that matter)
  • v

    Vitali

    04/29/2022, 6:39 PM
    But does what you're talking about make sense as a default? Or a setting you put the bucket into?
  • j

    john.spurlock

    04/29/2022, 6:43 PM
    bucket-level setting would be vastly better than nothing! : )
  • s

    sean

    04/29/2022, 6:44 PM
    getting this error doing multipart/form-data upload
    Copy code
    <Error><Code>XAmzContentSHA256Mismatch</Code><Message>The provided 'x-amz-content-sha256' header does not match what was computed.</Message></Error>
  • s

    sean

    04/29/2022, 6:45 PM
    using Postmand-defined headers
  • v

    Vitali

    04/29/2022, 6:55 PM
    I'm confused then. Is this object-level?
  • a

    andrew | 1003

    04/29/2022, 7:52 PM
    Hey so small issue I seem to have. When uploading a 1GB file direct with the s3 api with sharex I get an error: "Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host."

    https://r2-sharex.andrewnet.net/file/ShareX/2022/04b3afa386-fa0e-4d5a-8f31-fef1354e11aa/ShareX_DtBdFt5PN5.png▾

    I was wondering if there is a limit I am hitting with single-file size?
  • i

    itsmatteomanf

    04/29/2022, 7:53 PM
    Anyone here managed to find an S3 browser app/thing for macOS? All the ones I find require virtual hosts 😦
  • j

    James

    04/29/2022, 7:53 PM
    I've used Cyberduck before and it's alright
  • i

    itsmatteomanf

    04/29/2022, 7:54 PM
    Huh? Mine seems to force virtual hosts
  • i

    itsmatteomanf

    04/29/2022, 7:54 PM
    No path, unless I'm missing some setting.
  • j

    James

    04/29/2022, 7:54 PM
    Oh it's been years since I used it, sorry. Might be a requirement
  • i

    itsmatteomanf

    04/29/2022, 7:55 PM
    Oh, easy setting I see. https://docs.cyberduck.io/protocols/s3/#disable-use-of-virtual-host-style-requests
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 7:56 PM
    Cyberduck, yeah.
  • i

    itsmatteomanf

    04/29/2022, 7:56 PM
    The issue is that the setting is global 😦
  • i

    Isaac McFadyen | YYZ01

    04/29/2022, 7:56 PM
    Aww... that sucks.
  • i

    itsmatteomanf

    04/29/2022, 8:01 PM
    Ohhh, there are custom profiles and it works! 😄
1...787980...1050Latest