Cloudflare R2 免费10g图床。自带cdn缺点:需要信用卡。信用卡,也算是伟大的发明。人类简史书中也有介绍。我之前深恶痛觉的信用卡的,总感觉给自己添麻烦。还得设置的提醒还款。稍不注意小数点或者数字,拖欠个几毛钱,也会影响征信。就是为了挣别人犯错的,违约的钱.好处就是早买早享受,房产不就是这个模式。让一切提前发生。透支未来。让榨汁机的效率更高。对于资本,企业家,银行家,急需要钱的人比如助学贷款什么的。这个是伟大发明。最近2年因为Cloudflare的免费服务才去办理的信用卡。之前 Cloudflare R2 和 shareX 联动 图床 - 万有引力可以顺利使用了。因为是第三方的存储。免费10g也是活动。不知道什么时候,就变卦了。163相册,关闭的时候朋友提示我导出照片。qq空间,我也导出了。时刻准备着。qq空间内容导出 - 万有引力善始善终吧。一般都有考虑的完整点。

方法一 应该没有批量操作的。

Download objects via the Cloudflare dashboard

  • Log in to the Cloudflare dashboardOpen external link and select R2.
  • From the R2 page in the dashboard, locate and select your bucket.
  • From your bucket’s page, locate the object you want to download.
  • At the end of the object’s row, select the menu button and click Download.方法二 wrangler 需要npm 应该可以打包下载,就是相对步骤多。上传容易,下载目前相对难。免费的逻辑官方提示2行代码和一些标注。You can download objects from a bucket, including private buckets in your account, directly.
  • For example, to download file.bin from test-bucket:

    $ wrangler r2 object get test-bucket/file.binDownloading "file.bin" from "test-bucket".Download complete.

    The file will be downloaded into the current working directory. You can also use the --file flag to set a new name for the object as it is downloaded, and the --pipe flag to pipe the download to standard output (stdout).

    另一个snippets

    安装Wrangler

    要创建您的R2存储桶,请安装Wrangler,即Workers CLI。

    安装wrangler,确保您已安装npm。使用像Volta这样的Node版本管理器或nvm以避免权限问题或轻松更改Node.js版本,然后运行:

    sh

    npm install -D wrangler

    或用Yarn安装:

    sh

    yarn add wrangler

    有关更多信息,请参阅Wrangler安装/更新页面(英文页面1)。

    2. 认证Wrangler

    安装完成后,wrangler将需要访问Cloudflare OAuth令牌来代表您管理Worker资源。

    运行wrangler login以自动化处理令牌。

    Wrangler将尝试自动打开您的网页浏览器,以完成Cloudflare帐户的登录过程。如果您在完成此步骤时遇到问题,或者您无法访问浏览器GUI,您可以将wrangler login终端生成的URL复制并粘贴到浏览器中并登录。

    sh

    wrangler loginAllow Wrangler to open a page in your browser? [y/n]y💁 Opened a link in your default browser: https://dash.cloudflare.com/oauth2/...

    打开浏览器,登录您的帐户,然后选择Allow。这将向Wrangler发送OAuth令牌,以便它可以将您的脚本部署到Cloudflare。

    版本要求

    R2需要Wrangler1.19.8或更高版本。要检查您的Wrangler版本,请运行wrangler --version。

    参考文章。Download objects · Cloudflare R2 docsCloudflare R2 快速开始使用指南教程 | 中文翻译 - Moraxyc's Rhapsody