stmoonar93 downloadsUpload and manage media and documents across multiple providers (Local, S3, MinIO, Cloudflare R2, SM.MS, GitHub, Aliyun, Tencent, Qiniu, Upyun, Imgur). Gallery and AI image search. 支持语义搜索文件的对象存储管理.
Upload images, videos, audio and documents from Obsidian to your own storage (S3, R2, MinIO, Aliyun, Tencent, Qiniu, Upyun, GitHub, SM.MS, Imgur or a local folder), browse them in a gallery, and optionally search your images by description on your own computer.
If this plugin helps you, please ⭐ star it on GitHub. Found a bug or have an idea? Open an issue (see Support and feedback).

main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/oss-gallery/, then enable the plugin..doc, .docx, .pptx, .xls, .xlsx). Files are uploaded one at a time; a progress card in the note lets you cancel a running or waiting upload. A failed upload keeps the file in the note with Retry, Save to vault (as a normal attachment) and Remove..jpg, .jpeg, .png, .gif, .bmp, .webp, .svg, .ico, .tiff, .tif, .avif). Search by URL (plain text or regex), Copy URL, Copy as embed, Insert into note, drag a tile into a note, delete.+/-/0/1), fit to screen / fit width / 100%, pan, previous/next, swipe.| Provider | Upload | Gallery | Delete | Semantic search | Private bucket (signed GET) | Notes |
|---|---|---|---|---|---|---|
| Local | yes | yes | yes | yes | n/a | Vault folder, or an absolute folder (inserted as file:/// links) |
| SM.MS | yes | yes | yes | yes | no | Uses the S.EE API (SM.MS moved to S.EE) |
| GitHub | yes | yes | yes | yes | no | Links use raw.githubusercontent.com unless Custom domain is set |
| Aliyun OSS | yes | yes | yes | yes | no | |
| Tencent COS | yes | yes | yes | yes | no | |
| Qiniu | yes | yes | yes | yes | no | URL (CDN domain) is required |
| Upyun | yes | yes | yes | yes | no | URL (acceleration domain) is required |
| Imgur | yes | no | no | no | no | Upload only, images only |
| Cloudflare R2 | yes | yes | yes | yes | yes | |
| S3 | yes | yes | yes | yes | yes | AWS S3 and S3-compatible services |
| MinIO | yes | yes | yes | yes | yes | For public links, allow anonymous read in the bucket policy |
Signed GET: for private S3 / R2 / MinIO buckets, gallery thumbnails and semantic indexing retry with a signed request when the public URL is refused. Links in notes and the lightbox always use the public URL.
Fields (* = required, default in parentheses):
| Provider | Fields |
|---|---|
| Local | Storage path* (attachments), Path relative to the vault (on), Delete to the trash (on) |
| SM.MS | S.EE API key* (create one under Tools > API Token on S.EE) |
| GitHub | Repository name* (username/reponame), Branch (main), Token*, Custom domain |
| Aliyun OSS | Access key ID*, Access key secret*, Bucket*, Region (oss-cn-hangzhou), Path, Custom domain |
| Tencent COS | Secret ID*, Secret key*, Bucket*, Region (ap-shanghai), Path, Custom domain |
| Qiniu | Access key*, Secret key*, Bucket*, URL*, Area (z0), Path |
| Upyun | Operator*, Password*, Bucket* (service name), URL*, Path, Suffix |
| Imgur | Client ID*, Proxy |
| Cloudflare R2 | Account ID*, Access key ID*, Secret access key*, Bucket*, Public URL |
| S3 | Endpoint*, Region (us-east-1), Access key ID*, Secret access key*, Bucket*, Use HTTPS (on), Path-style URLs (on), Public URL |
| MinIO | Endpoint*, Port (9000), Use HTTPS (on), Access key*, Secret key*, Bucket*, Region, Custom domain |
Path is a provider-side folder prefix. MinIO Port and Use HTTPS apply only when Endpoint has no http:// / https:// prefix.
In the order of the settings tab:
$URL is the image URL, $NAME the file name. Default ; wiki-link example ![[$NAME]].Find images by describing them in English or Chinese, or find images that look like a given one. Off by default; nothing is downloaded until you confirm.
https://hf-mirror.com) and GitHub mirror under Download sources. Mirrors change only where files come from; the hashes still apply.huggingface.co/... and runtime/<version>/...), then press Download model: files that pass the hash check are kept and not downloaded again.All of these are outside the vault, per device, and never synced. <app> is %LOCALAPPDATA%\obsidian-oss-gallery on Windows, ~/Library/Application Support/obsidian-oss-gallery on macOS, and $XDG_CACHE_HOME/obsidian-oss-gallery on Linux (~/.cache/obsidian-oss-gallery when XDG_CACHE_HOME is unset or not absolute).
| What | Default | Changed by | Cleared by |
|---|---|---|---|
| Semantic model and runtime (shared by all vaults) | <app>/models |
Model directory | Delete model: only the files the plugin downloaded |
| Semantic index | <app>/indexes |
Index directory | Clear index for this vault: only this vault's index files |
| Gallery thumbnails | <app>/thumbs |
(fixed) | Clear thumbnails: only this vault's thumbnail files |
Each button removes only its own files: clearing the index keeps the model and thumbnails, and so on.
| Command | Notes |
|---|---|
| File upload | Pick files to upload into the current note |
| Open gallery | Same as the OSS Gallery ribbon icon |
| Semantic search: run self-test | Shown once the model is installed |
| Semantic search: index the current provider now | Needs the model and a listable provider |
| Semantic search: stop indexing | Shown while indexing runs |
Images in a private bucket do not load, or the index says "Access denied (HTTP 403): check the bucket permissions or make the images publicly readable". Notes and the lightbox load the public URL, so the bucket (or its custom domain) must allow public read. S3, R2 and MinIO can index and show thumbnails of a private bucket through signed requests; other providers cannot.
I uploaded a PDF or a video, but it is not in the gallery. The gallery lists image files only. The file is uploaded and linked in your note.
The semantic search toggle is disabled. Its tooltip says why: the model is not downloaded or is being checked, semantic search is turned off in settings, WebGPU is not available, the provider cannot be indexed (Imgur), or there is no index yet (press Build index).
WebGPU is unavailable. Update Obsidian with the latest installer from obsidian.md and your graphics driver, and make sure hardware acceleration is on. Remote desktop sessions and virtual machines usually have no GPU access.
The model download is slow or fails. Set a mirror under Download sources (see above), or use the offline install.
What happens to unfinished uploads when Obsidian closes? The placeholder in the note is replaced with "(Upload of did not finish)". Upload the file again.
Why does the upload card show no percentage?
Uploads go through Obsidian's requestUrl, which cannot report progress. The card shows an "Uploading" bar until the upload finishes.
The plugin talks only to the storage service you configure, and, if you download the semantic model, to GitHub and Hugging Face (or your mirrors). No telemetry, analytics or ads; nothing is sent to the plugin author. You need no account other than your own provider's.
<account>.r2.cloudflarestorage.com<bucket>.<region>.aliyuncs.com (or your custom domain)<bucket>.cos.<region>.myqcloud.comup-<area>.qiniup.com and the Qiniu API hostsv0.api.upyun.comapi.github.com (links: raw.githubusercontent.com or your custom domain)api.imgur.com, or your proxys.ee/api/v1docs.google.com or view.officeapps.live.com. Keep it Disabled to avoid this.github.com (release assets) and huggingface.co, or your mirrors. Queries and images never leave your computer..obsidian/plugins/oss-gallery/data.json. If you sync or commit your vault, exclude that file or use least-privilege keys.Ctrl+Shift+I, or Cmd+Option+I on macOS), if anyMIT. Changelog: GitHub Releases. Licenses of the bundled semantic runtime (transformers.js, ONNX Runtime Web, UTIF.js, pako) are in THIRD_PARTY_NOTICES.txt on each release.
Started as a fork of Obsidian Minio Uploader Plugin.