R2 Image Uploader

pending

by wxhly99

Automatically upload pasted images to Cloudflare R2 and replace with public URLs.

Updated 22d ago0BSDDiscovered via Obsidian Unofficial Plugins
View on GitHub

R2 Image Uploader

An Obsidian plugin that automatically uploads pasted images to Cloudflare R2 and replaces the links in your notes with public R2 URLs.

Features

  • Auto-upload screenshots and copied image files on paste
  • Auto-download and re-host image URLs pasted from the browser
  • SHA256-based local cache to skip re-uploading duplicate images
  • Customizable storage path template with variables like year, month, day, timestamp, and more
  • Built-in "Clean up unreferenced R2 images" command to find and delete objects no longer referenced in your notes

Configuration

Fill in your Cloudflare R2 credentials on the plugin settings page:

FieldDescription
Account IDFound in the URL of the R2 page in the Cloudflare dashboard
Access Key IDAccess Key ID of your R2 API token
Secret Access KeySecret Access Key of your R2 API token
Bucket NameName of your R2 bucket
Public URLPublic base URL of your bucket, e.g. https://pub-xxx.r2.dev

Once configured, enable the Auto Upload to R2 toggle to activate the plugin.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.