This is a plugin for Obsidian that allows you to upload attachments from your vault to a remote S3-compatible object storage and replace the local links with their public URLs.
This is useful for keeping your vault size small and making your notes more portable and shareable across the web.
- Upload attachments to any S3-compatible storage service (e.g., AWS S3, Cloudflare R2, MinIO).
- Automatically replaces local file links (
![[image.png]]
) with remote markdown links (!
). - Support for customizing the remote path.
- Open Obsidian's settings.
- Go to
Community plugins
and make sureRestricted mode
is off. - Click
Browse
to open the community plugins browser. - Search for "Remote Attachments".
- Click
Install
. - Once installed, click
Enable
to activate the plugin.
After enabling the plugin, you must configure your S3-compatible storage provider in the plugin's settings page.
!Screenshot of the settings page
Here are the details for each setting:
- Endpoint: The endpoint URL of your S3-compatible service.
- Access Key ID: Your access key for the service.
- Secret Access Key: Your secret access key.
- Bucket Name: The name of the bucket where you want to store your attachments.
- Region: The region of your bucket (e.g.,
us-east-1
). - Base URL (Optional): The public base URL for accessing your files. If your bucket is public, this might be something like
https://s3.your-region.amazonaws.com/your-bucket
or a custom domain. The final URL will be{Base URL}/{filename}
. If left empty, the plugin will try to construct a standard S3 URL.
Example for Cloudflare R2:
- Endpoint:
https://<ACCOUNT_ID>.r2.cloudflarestorage.com
- Access Key ID: Your R2 Access Key ID.
- Secret Access Key: Your R2 Secret Access Key.
- Bucket Name: Your R2 bucket name.
- Region:
auto
- Base URL: Your R2 public bucket URL (e.g.,
https://pub-....r2.dev
).
Warning: Your credentials are stored locally on your device. Be mindful of security best practices.
Simply drag and drop one or more image files from your computer directly into a note in Obsidian.
The plugin will automatically:
- Upload each image to your configured S3-compatible storage.
- Replace the local file link with the public URL in your note.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE.md file for details.
Copyright (c) 2025 moritamori