Add Cloudflare R2 in iPic

Cloudflare R2 is the online storage powered by Cloudflare. For more introductions, please refer to Cloudflare R2’s official site.

Add Cloudflare R2 in iPic

Open iPic’s Preferences, clicks Image Host, and add Cloudflare R2.

Here is the introductions for all parts:

  • Account ID
    • You can find it at right-top of Cloudflare R2 home.
  • Bucket
    • Same with the bucket in Cloudflare R2
  • Access Key and Secret Key
    • They’re the Access Key ID and Secret Access Key of Cloudflare R2 API Token.
    • Note: When create the API Token, should include the Write permission at least.
  • Http Prefix

After fill all the parts, clicks the Validate button. If all the information above is correct, you can see the link of Passed in the right.

Beside the basic configuration above, Cloudflare R2 also supports several advanced ones. Click the ‘Advanced’ button in right of Http Prefix, you can see the following setting page.

  • Http Prefix
    • Same with what ever introduced.
  • Filename Prefix
    • Could understand as the folder in Cloudflare R2
    • For example, if you want iPic upload all images in blog folder, just input blog here. The image link will like https://f004.backblazeb2.com/file/iPicDemo/blog/pic.jpg
    • Note: If you enable File name prefix when create App Key, the Filename Prefix key should includes the File name prefix at least.
  • Filename
    • The filename saved in Cloudflare R2. Now iPic supports these 3 kinds of filename.
    • Only Filename e.g., pic.jpg
    • Date-Filename e.g., 2023-06-16-pic.jpg
    • Random e.g., jk8l1.jpg, could help to shorten the link.
  • Http Suffix
    • Any characters in the end of the link.

After all, clicks Apply to save.