R2 Image Uploader
pendingby wxhly99
Automatically upload pasted images to Cloudflare R2 and replace with public URLs.
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:
| Field | Description |
|---|---|
| Account ID | Found in the URL of the R2 page in the Cloudflare dashboard |
| Access Key ID | Access Key ID of your R2 API token |
| Secret Access Key | Secret Access Key of your R2 API token |
| Bucket Name | Name of your R2 bucket |
| Public URL | Public 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.