{"id":19003490,"date":"2026-08-26T11:36:55","date_gmt":"2026-08-26T11:36:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cloudflare-r2-problem\/"},"modified":"2026-08-26T12:48:47","modified_gmt":"2026-08-26T12:48:47","slug":"cloudflare-r2-problem","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cloudflare-r2-problem\/","title":{"rendered":"Cloudflare R2 problem"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello Thomas,<br \/><br \/>I have a problem with importing files from Cloudflare R2 using External files in Media Library 5.3.0 together with the S3-compatible platforms extension.<br \/><br \/>The connection to Cloudflare R2 works correctly. The plugin connects to the bucket, displays its directories and files, and allows me to select files for import.<br \/><br \/>The R2 bucket is publicly available through a <strong>Cloudflare R2 Custom Domain<\/strong>.<br \/><br \/>However, when I add a file from R2 to the WordPress Media Library, with <strong>\u201cImport the external file as a real file\u201d disabled<\/strong>, the plugin still downloads the physical file to the local WordPress uploads directory.<br \/><br \/>In File Info the file is correctly recognized as:<br \/><br \/><strong>Source: Cloudflare R2<\/strong><br \/><strong>External file: Yes<\/strong><br \/><br \/>but at the same time it shows:<br \/><br \/><strong>Hosting: File is locally hosted<\/strong><br \/><br \/>I would like the physical files to remain exclusively in Cloudflare R2 and WordPress Media Library to reference them as external files, without creating local copies.<br \/><br \/>I have also checked the plugin code while troubleshooting. It appears that the Cloudflare R2 integration determines whether a file is public by checking the R2 storage\/API endpoint. In my configuration, however, public access is provided through a <strong>Cloudflare R2 Custom Domain<\/strong>, so the file appears to be classified as non-public and consequently as locally hosted.<br \/><br \/>Could you please confirm whether <strong>Cloudflare R2 Custom Domains are currently supported for external files without local copies<\/strong>?<br \/><br \/>If so, how should the Custom Domain be configured in the plugin?<br \/><br \/>If this is currently not supported, would it be possible to add support for a Cloudflare R2 Custom Domain \/ public URL?<br \/><br \/>My intended setup is to use <strong>one central Cloudflare R2 media repository for several WordPress\/WooCommerce websites<\/strong>, with each website referencing the same external media files without storing its own physical copies.<br \/><br \/>Thank you for your help.<\/p>\n","protected":false},"template":"","class_list":["post-19003490","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19003490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19003490\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19003490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}