R2 Asset Access

A sandboxed plugin for EmDash that allows images to be saved into the media library from an R2 bucket.

View source
Public name@azydeco.com/plugin_emdash_r2_asset_access

Or open Registry in your EmDash admin and search for this name.

Overview

Emdash R2 Asset Access allows images from an R2 bucket to be saved into the Emdash media library. Keys can optionally be searched for by prefix.

Listing assets

On the admin sidebar find the R2 Asset Listing tab and open it. From there click on Settings, enter your keys and urls from Cloudflare then click on save. There will be a confirmation pop up when your settings are saved.

Navigate to the Images tab and the image assets of your Cloudflare R2 bucket will be listed. You can search again by inputting an optional prefix and then clicking on Search by prefix. This will make another fetch to the bucket. Each image is accompanied by its public URL and a Save to media library button. You can copy and paste the url into a page, or you can click on the Save button and the images will be added to your Emdash media library.

Permissions

Plugins get only the capabilities they declare and you approve. Your EmDash admin lists these again before anything installs.

  • Read content

    Read entries from your site’s content collections.

  • Read media

    Read media metadata from your library.

  • Manage media

    Upload and delete media in your library.

  • Make unrestricted network requests

    Connect to any external host.

Keep exploring

More plugins like R2 Asset Access

Browse by keyword, or see everything @azydeco.com publishes.

Install on your site

Open in EmDash

R2 Asset Access

@azydeco.com/plugin_emdash_r2_asset_access

Choose the EmDash site where you want to review this plugin. Nothing is installed until you confirm its permissions in that site's admin.

This browser will remember the site. You can change it next time.