Add Attachment

by olegg90
5
4
3
2
1
Score: 50/100

Description

The Add Attachment plugin lets you attach several files to the current note in one batch and inserts all links in a single edit, so the whole batch stays as one undo step. It uses Obsidian's default attachment location, can rename files to match the note with a collision safe index, and can resize jpg, jpeg, png and webp images to a longest side threshold with configurable quality. A second command skips renaming and resizing and keeps original files unchanged. It works on desktop and mobile without Node.js or native dependencies, processes files one at a time to limit memory use, and falls back to copying large photos at original size when image decoding fails.

Reviews

No reviews yet.

Stats

1
stars
122
downloads
0
forks
2
days
0
days
0
days
2
total PRs
0
open PRs
0
closed PRs
2
merged PRs
0
total issues
0
open issues
0
closed issues
23
commits

Latest Version

16 hours ago

Changelog

Release 0.6.1. Install via BRAT or copy manifest.json + main.js + styles.css into .obsidian/plugins/add-attachment/.

README file from

Github

Add Attachment

Attach several files at once to the current note, with a link inserted for each — optionally renamed after the note and downscaled if they are images.

Works on desktop and mobile (Android in particular): one bundle, no Node.js or native dependencies.

[!WARNING] Commands were renamed in 0.6.0. Add attachments to current note is now Attach files to current note, and Add original attachments (keep names, no resize) is now Attach original files (keep names, no resize) (command ids attach-files and attach-original-files). Hotkeys and mobile toolbar buttons bound to the old commands stop working after the update — re-assign them in Settings → Hotkeys and in the mobile toolbar settings.

What it does

  • Pick many files in one go. One dialog, one batch, links inserted at the cursor in a single edit — so a batch is a single undo step.
  • Saves where you told Obsidian to. The target folder comes from Settings → Files and links → Default location for new attachments; the plugin never second-guesses that setting.
  • Optional rename to <note name>_<index>.<ext>, so attachments sort next to the note they belong to instead of carrying names like IMG_20240115_882341.jpg.
  • Optional image downscaling to a pixel threshold on the longest side, re-encoded at a quality you choose. Useful when notes collect phone photos.
  • A second command that skips all of it, for when you want the file exactly as it is.

How it differs from similar plugins

Several plugins insert multiple attachments. This one adds the two steps people usually automate afterwards with scripts:

  • Renaming with a collision-safe index — the next index is MAX(existing) + 1, not count + 1, so deleting an attachment from the middle can never make a new file overwrite an existing one.
  • Resizing on the way in, so large photos never enter the vault at full size.

If you only need the links and no processing, a simpler plugin will serve you better.

Commands

Command Rename Resize
Attach files to current note per settings per settings
Attach original files (keep names, no resize) always off always off

Both are available from the command palette and as ribbon icons, and both can be added to the mobile toolbar.

Settings

Setting Default Notes
Rename attached files on off = keep the original filename
Resize images on jpg / jpeg / png / webp only
Resize threshold (px) 1600 longest side, 64–20000
Image quality 0.85 jpg / webp re-encode quality
Separator between links new line inserted between links of a batch, not after the last

The attachment folder is deliberately not duplicated here — it belongs to Obsidian's own settings.

Known limitations

Memory on very large photos (mobile). Resizing decodes the image at full resolution first, so peak memory is driven by the source dimensions, not the target ones — a 40+ MP photo needs a few hundred MB while it is being scaled. On a low-RAM device that decode can fail.

It fails safely: the file is copied through at its original size and a warning is logged to the console. You get the attachment either way; it just isn't downscaled. Files are processed one at a time specifically so several large photos can't pile up in memory.

Other formats. SVG and animated GIF are never resized (they would lose vector data or animation) and pass through untouched. HEIC photos may not decode in older Android WebViews — same safe fallback: copied at original size.

Installation

Once listed in Community plugins: Settings → Community plugins → Browse → Add Attachment.

Meanwhile, either install it with BRAT from this repository, or do it manually: download manifest.json, main.js and styles.css from the latest release into <your vault>/.obsidian/plugins/add-attachment/, then enable the plugin.

Development

npm install
npm run dev      # watch build
npm run build    # type-check + production bundle
npm run deploy   # copy manifest.json + main.js + styles.css into a vault

Set OBSIDIAN_VAULT to your vault path before npm run deploy (deploy.mjs falls back to the author's path otherwise). There is no live reload on mobile: build on desktop and let the plugin folder sync to the device, then reload the app.

License

MIT — see LICENSE.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Recent Files
6 years ago by Tony Grosinger
Display a list of most recently opened files
Notebook Navigator
2 months ago by Johan Sanneblad
A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.
Commander
3 months ago by jsmorabito
Commander - Obsidian Plugin | Add Commands to every part of Obsidian's user interface
Image Converter
a month ago by xryul
⚡️ Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align images directly in Obsidian. Drag-resize, rename with variables, batch process. WEBP, JPG, PNG, HEIC, TIF.
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Consistent attachments and links
5 years ago by Dmitry Savosh
Obsidian plugin. Move note with attachments.
Fast Note Sync
2 months ago by HaierKeys
Can be privately deployed, focusing on providing Obsidian users with a seamless, distraction-free note synchronization plugin with real-time sync across multiple platforms, supporting Mac, Windows, Android, iOS, and offering multilingual support.可私有化部署,专注为 Obsidian 用户提供无打扰、丝般顺滑、多端实时同步的多平台笔记同步插件。
Custom Attachment Location
5 years ago by RainCat1998
Customize attachment location with variables($filename, $data, etc) like typora.
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
File Cleaner Redux
3 years ago by husjon
A plugin for Obsidian to help clean up files in your vault
File Explorer++
4 months ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
Flexplorer
3 months ago by kh4f
🗃️ Obsidian File Explorer Enhancer
Local Backup
2 months ago by velviagris
Automatically creates a local backup of the vault.
Dragger
3 months ago by ariestar
An Obsidian plugin for dragging and rearranging any block.
Attachment Management
3 years ago by trganda
Attachment Management of Obsidian
JSON-CSV Importer
2 months ago by farling42
Plug-in for Obsidian.md which will create Notes from JSON files
Update time on edit
5 years ago by beaussan
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
Janitor
4 years ago by Gabriele Cannata
Performs various maintenance tasks on the Obsidian vault
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Obsidian markdown export
4 years ago by bingryan
This plugin allows to export directory/single markdown to a folder. support output format(html/markdown/text)
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Find Orphaned Images
2 months ago by josmarcristello
Find Orphaned Images is an Obsidian plugin designed to help you keep your vault clean and organized by identifying and managing images that are not linked anywhere in your notes.
Voice
2 months ago by Chris Oguntolu
🔊 The Obsidian Voice plugin lets you listen to your written content being read aloud—mobile-friendly audiobook-like experience. 🎧
YAOS
4 months ago by kavinsood
A zero-terminal, real-time sync engine powered by your own Cloudflare Worker.
File Cleaner
5 years ago by Johnson0907
A file cleaner plugin for Obsidian.
Reveal Active File Button
5 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Luhman
5 years ago by Dylan Elliott
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Binary File Manager
5 years ago by qawatake
An Obsidian plugin to manage binary files
Nuke Orphans
4 years ago by Sandorex
Obsidian notes plugin that trashes orphaned files and attachments
Google Keep Import
3 years ago by Dale de Silva
Imports Google Keep backup files
Advanced Note Mover
2 months ago by Lars Bücker
Quickly and easily move notes to predefined folders. Perfect for organizing your notes.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Linked Note Exporter
a year ago by the-c0d3r
Obsidian plugin to export a note along with all its attachments and linked notes—cleanly, conveniently, and ready to share.
Image Manager
a month ago by David V. Kimball
Insert, rename, and sort external images by transforming them into local files within your notes.
Vault Transfer
3 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Link indexer
6 years ago by Yuliya Bagriy
Media Companion
2 years ago by Nick de Bruin
Enhance Copy Note
2 months ago by kzhovn
Plugin which enhances the copy command for Obsidian.
Update Relative Links
4 years ago by val
Insert Multiple Attachments
2 years ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Mobile PDF Exporter
a month ago by Murat
One-click selectable preview PDF export plugin for Obsidian mobile and desktop.
Note archiver
3 years ago by thenomadlad
File Explorer Reload
4 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
Full Screen Toggle
3 years ago by Donkey Pacific
Fullscreen toggle plugin across all platforms for Obsidian.
Cloudinary Uploader
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Webdav File Explorer
3 years ago by red0orange
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
External Rename Handler
2 years ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
Screwdriver
4 years ago by vorotamoroz
Speech To Text Keyboard Helper
3 years ago by mwoz123
O2
4 years ago by haril song
Converts obsidian markdown syntax to other platforms.
File chucker
4 years ago by Ken Lim
Mobile Sidebar Notes
a month ago by ckep1
Open notes & new tabs in the sidebar on the Obsidian mobile app.
Gay Toolbar
2 months ago by chaskane
Colorful, customizable toolbar for Obsidian, designed for mobile.
Open File by Magic Date
4 years ago by simplgy
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
S3 attachments storage
4 years ago by TechTheAwesome
An Obsidian plugin for storage and retrieval of media attachments on S3 compatible services.
Recently Added Files
2 years ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
Inbox Organiser
2 years ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Image Size
2 years ago by Jie Zhang
Set the default size for pasted images.
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Git File Explorer
3 years ago by Mateus Molina
New Note Fixer
2 years ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Bi Ji Tong Bu
a month ago by 笔记同步助手
Bi Ji Tong Bu (笔记同步助手) for Obsidian — marketplace edition (no self-update; full disclosures)
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Table Line Break Mobile
7 months ago by marcelflymark
Obsidian plugin: Insert a new line break inside a table cell using the <br> HTML element
Attachment Uploader
a month ago by zhuxining
An attachment uploader plugin for Obsidian
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Local Any Files
2 years ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Note Companion Folder
3 years ago by Chris Verbree
A Obsidian Plugin providing a way to associate a folder to a note
Expand Selection
5 months ago by Alex Tait
Obsidian plugin to expand your editor selection to lines, sections (recursive), or the entire note
Copy Contents
2 months ago by Richard Jones
Copy or export file and folder contents - perfect for LLMs
Paste Image Into Property
2 years ago by Nito
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Attachment Organizer
2 months ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
WebDAV Image Uploader
a year ago by ste
Uploads, downloads and deletes images on WebDAV server within Obsidian notes.
Graphic Organizer
6 months ago by Nick Le Guillou - Superhuman Curiosity
S3agle
2 years ago by Turner Monroe (turnercore)
Tencent COS for Imgur
2 years ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
Auto Folder Note Paste
a year ago by d7sd6u
Convert your note into folder note upon pasting or drag'n'dropping an attachment
Simple Image Inserter
3 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Auto Move File
9 days ago by sx kan
Automatically move files based on frontmatter properties in Obsidian
External File Card
2 years ago by James-Yu
A plugin for Obsidian showing a card displaying basic information of a file in pre-defined folders.
Infostacker Note Publish
2 years ago by Taskscape LTD, Patryk Nowak, Kacper Pabianiak
Infostacker plugin for Obisidian
VaultSync
2 years ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
Attachments Cache
a year ago by luisbs
Obsidian plugin to cache attachments locally
New Filename
2 years ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
WebDAV Explorer
6 months ago by 蓝星晓夜
WebDAV Server Explorer.
Remote Fetch
a year ago by Shaharyar
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
PixNote
22 days ago by Sofia Milton
inBox Sync
a month ago by maoruibin
inBox 笔记的 Obsidian 插件
Note Types
a month ago by jsmorabito
sync-db-os
2 years ago by ketd
MD Butler
a month ago by Peter Petschownik
Automatically manages YAML frontmatter fields for all notes. A reliable alternative to Templater formulas for consistent metadata.
Store
a month ago by shimeoki
Manage your notes within a single folder.
Simple Editorial
13 days ago by Beppe
A minimal editorial markup plugin for writers using Obsidian.
Feishu Importer
8 days ago by leon
feishu document importer for Obsidian
Alternative Explorer
a month ago by sk-obsidian
Alternative Explorer is an Apple Notes–style sidebar for browsing folders and notes in Obsidian. Switch between an expandable folder tree and a notes list — a compact alternative to the built-in File Explorer.