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

    HardAtWork

    05/26/2023, 10:28 AM
    You can get the region via the S3 APIs, but not any more specific than that
  • l

    Lone Wolf

    05/26/2023, 10:28 AM
    I'll try that ty
  • m

    MightyCeres

    05/26/2023, 10:53 AM
    Hello, I'm getting a weird issue with R2
  • m

    MightyCeres

    05/26/2023, 10:54 AM
    I'm uploading a number of files with the following command
    wrangler r2 object put --content-type  "text/css" -f <filepath>/index-0e61881a.css  <bucket>/onboarding-ui/assets/index-0e61881a.css
  • m

    MightyCeres

    05/26/2023, 10:55 AM
    and for this specific file... R2 returns
    text/plain
    while for others css files it returns the correct
    text/css
  • m

    MightyCeres

    05/26/2023, 10:55 AM
    this is kind of baffling because I'm not doing anything strange with that specific file
  • m

    MightyCeres

    05/26/2023, 10:56 AM
    the only thing I can think of is that this is a 34Kb css file, while the others are way smaller.
  • m

    MightyCeres

    05/26/2023, 11:04 AM
    The R2 dashboard displays the correct content-type

    https://cdn.discordapp.com/attachments/940663374377783388/1111610768174100530/image.png▾

  • m

    MightyCeres

    05/26/2023, 11:06 AM
    am I missing anything?
  • s

    Sid | R2

    05/26/2023, 11:49 AM
    Huh, just this one file is misbehaving? How are you fetching it?
  • s

    sirupsen

    05/26/2023, 3:36 PM
    How can I obtain the checksum of a downloaded object on the client, to verify integrity? For S3, the etag is equal to the MD5 of the body, but doesn't seem to be the case on R2
  • s

    sirupsen

    05/26/2023, 3:42 PM
    Ahhh... it's because I'm using range headers and R2 sends the etag for the full object, not the range. That's an S3 incompatibility then 🙂
  • s

    sirupsen

    05/26/2023, 3:43 PM
    Is there another way to check integrity, other than putting it into the object itself?
  • f

    frydim1

    05/26/2023, 5:28 PM
    no it's not possible to move a bucket, even if you reuse the name and create again... once created it's stuck forever
  • l

    Lone Wolf

    05/26/2023, 7:00 PM
    cool thank you
  • Incorrect content-type
    m

    MightyCeres

    05/26/2023, 7:54 PM
    Yes… it’s one file… I created a cors rule and I’m accessing the file directly
    s
    • 2
    • 7
  • m

    MightyCeres

    05/26/2023, 7:55 PM
    As you would to from a “website s3 bucket”
  • m

    MightyCeres

    05/26/2023, 7:56 PM
    It works very well for everything… except that file and another css file (both the main css files of two interfaces im building with vite+tailwind)
  • m

    MightyCeres

    05/26/2023, 8:09 PM
    I’d be happy to send you the file to see if you can reproduce
  • j

    Jennifer Becker

    05/26/2023, 9:54 PM

    https://r2.e-z.host/bea8ec9b-5892-4f88-b9a0-32fa670a1a1e/8jnmnb3q.png▾

    Why is it that when I upload files of 3GB or more it loads ad infinitum?
  • b

    BitSwed

    05/26/2023, 11:15 PM
    @User You can use these global flags
    Copy code
    --header stringArray                   Set HTTP header for all transactions
    --header-download stringArray          Set HTTP header for download transactions
    --header-upload stringArray            Set HTTP header for upload transactions
    https://rclone.org/flags/
  • s

    Sid | R2

    05/27/2023, 1:49 AM
    Right yeah, our ETags aren’t MD5 hashes. The only way to do integrity checks right now is to store a hash as custom metadata next to the object itself, like you said
  • s

    Sid | R2

    05/27/2023, 1:54 AM
    I’m not sure I understand, you’re using multipart uploads to upload your files right? Are you referring to the greyed out rows? If so, they just represent multipart uploads that haven’t been completed yet. Have you issued a CompleteMultipartUpload for these uploads?
  • m

    MightyCeres

    05/27/2023, 2:06 AM
    I have a question about R2 wrangler commands or api... is it possible to bulk upload some files like we can do for KV?
  • p

    PencilNavigator

    05/27/2023, 12:26 PM
    asking this again, how can i fix winscp not able to upload???
  • b

    blk

    05/27/2023, 2:24 PM
    is there an eta on replication 🙏
  • a

    Autarch

    05/27/2023, 3:11 PM
    what fastest speed could be while downloading from r2 bucket?
  • b

    blk

    05/27/2023, 3:34 PM
    ive seen up to usually 65 mb/s (could be completely wrong)
  • b

    blk

    05/27/2023, 3:35 PM
    using public domains, downloading straight from the bucket with s3 was 115 mb/s
  • k

    Karew

    05/27/2023, 6:43 PM
    If you use a public R2 domain, and the files are cached, the download speed should be similiar because you'll use the Cloudflare CDN
1...10461047104810491050Latest