Attachment Uploader

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

Description

The attachment uploader plugin uploads local attachments to cloud storage by running a user defined shell command and replacing the local file with the returned network URL. It can be configured to handle only selected attachment formats, delete the original local file after a successful upload and trigger automatically when content is pasted or dragged in from outside the app. The plugin includes ready made command patterns for tools like uPic and Picsee, but it also works with a custom script as long as the command prints the uploaded file URL in its output. That keeps the workflow flexible while leaving storage choice and upload logic under your control instead of locking it to one service.

Reviews

No reviews yet.

Stats

8
stars
2,782
downloads
6
forks
13
days
13
days
13
days
8
total PRs
0
open PRs
1
closed PRs
7
merged PRs
7
total issues
0
open issues
7
closed issues
15
commits

RequirementsExperimental

  • An external image hosting or cloud upload tool with a shell command that returns the uploaded file URL

Latest Version

13 days ago

Changelog

README file from

Github

obsidian-attachment-uploader

This Obsidian plugin helps you upload local attachments to cloud storage. You can customize the upload shell command and specify which attachment formats to upload.

中文文档

Features

  • Custom shell command for uploading
    • Built-in uPic upload command: /Applications/uPic.app/Contents/MacOS/uPic -o url -u %s
    • Built-in Picsee upload command: "/Applications/Picsee.app/Contents/MacOS/Picsee -u %s"
  • Customizable attachment formats to upload
  • Option to delete original attachments after upload
  • Automatic upload when pasting or dragging from outside Obsidian

Installation

  1. In Obsidian, open the plugin manager
  2. Search for "obsidian-attachment-uploader"
  3. Click "Install", then enable and configure after installation

Configuration

  1. Install an image hosting tool (with shell upload command) or create a custom shell upload command
  2. Configure the Obsidian attachment uploader plugin:
    • Upload Command: Configure the shell command for uploading attachments
    • Attachment Formats to Upload: Configure which attachment formats to upload (separated by line breaks)
    • Delete Original After Upload: Configure whether to delete original attachments after upload
  3. Custom command examples:
    • uPic shell execution command: /Applications/uPic.app/Contents/MacOS/uPic -o url -u /local.png
    • Shell output format:
      Uploading ...
      Uploading 1/1
      Output URL:
      https://r-w.oss-cn-shanghai.aliyuncs.com/uPic/Snipaste_2024-08-18_22-14-14.png?x-oss-process=image/auto-orient,1/quality,q_80/format,webp
      
    • This plugin uses %s to replace the local image path and extracts the image URL from shell output using urlMatch = stdout.match(/\s+(https?:\/\/\S+)/)
    • Therefore, the uPic command should be: /Applications/uPic.app/Contents/MacOS/uPic -o url -u %s
    • If writing your own upload script, make sure to print the uploaded image's network URL in the shell output

Usage

  1. Open a note containing attachments in Obsidian
  2. Press command+p to open the command palette and type Upload editor attachments, or use the Ribbon button

Credits

  • Inspired by typora image upload functionality

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Advanced Note Mover
a month ago by Lars Bücker
Quickly and easily move notes to predefined folders. Perfect for organizing your notes.
Attachment Management
3 years ago by trganda
Attachment Management of Obsidian
Attachment Manager
3 years ago by chenfeicqq
Attachment folder name binding note name, automatically rename, automatically delete, show/hide.
Attachment Organizer
19 days ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
Attachments Cache
a year ago by luisbs
Obsidian plugin to cache attachments locally
Auto Folder Note Paste
a year ago by d7sd6u
Convert your note into folder note upon pasting or drag'n'dropping an attachment
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.
Cloudinary Uploader
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Consistent attachments and links
5 years ago by Dmitry Savosh
Obsidian plugin. Move note with attachments.
Content-Addressed Attachments
5 months ago by NateScarlet
Stores obsidian attachments using content-based addressing (similar to IPFS)
Custom Attachment Location
5 years ago by RainCat1998
Customize attachment location with variables($filename, $data, etc) like typora.
EUpload
a year ago by Appleex
Obsidian 插件,专用于上传文件到存储仓库。目前支持 Lskypro(兰空图床),后续有需求会引入其它存储方式,如:Github/Gitee等等。
Fast Note Sync
a month 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 用户提供无打扰、丝般顺滑、多端实时同步的多平台笔记同步插件。
File Cleaner
4 years ago by Johnson0907
A file cleaner plugin for Obsidian.
File Cleaner Redux
3 years ago by husjon
A plugin for Obsidian to help clean up files in your vault
Find Orphaned Images
a month 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.
Google Drive Sync
2 years ago by Richard Xiong
A plugin to make Obsidian work in Google Drive to enable access to iOS.
Google Keep Import
3 years ago by Dale de Silva
Imports Google Keep backup files
Image Manager
5 days ago by David V. Kimball
Insert, rename, and sort external images by transforming them into local files within your notes.
Image Size
a year ago by Jie Zhang
Set the default size for pasted images.
ImgBB Uploader
2 years ago by Jordan Handy
An image uploader to imgBB for Obsidian
Imgur
6 years ago by Kirill Gavrilov
Pastes images right to imgur.com
inBox Sync
8 days ago by maoruibin
inBox 笔记的 Obsidian 插件
Infostacker Note Publish
2 years ago by Taskscape LTD, Patryk Nowak, Kacper Pabianiak
Infostacker plugin for Obisidian
Insert Multiple Attachments
2 years ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Janitor
4 years ago by Gabriele Cannata
Performs various maintenance tasks on the Obsidian vault
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.
Local Any Files
2 years ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Minio Uploader
3 years ago by Seebin
Upload images, videos, audio, pdf, and other files to Minio OSS.
Note Companion Folder
2 years ago by Chris Verbree
A Obsidian Plugin providing a way to associate a folder to a note
Nuke Orphans
4 years ago by Sandorex
Obsidian notes plugin that trashes orphaned files and attachments
O2
3 years ago by haril song
Converts obsidian markdown syntax to other platforms.
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)
Paste Image Into Property
a year ago by Nito
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
S3 attachments storage
4 years ago by TechTheAwesome
An Obsidian plugin for storage and retrieval of media attachments on S3 compatible services.
S3 Image Uploader
4 years ago by jvsteiner
This project implements an image uploader, similar to others offered by the community, with one important difference: you can provide your own s3 based storage, instead of relying on a third party service, such as imgur.
Tencent COS for Imgur
2 years ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
Webdav File Explorer
3 years ago by red0orange
WebDAV Image Uploader
a year ago by ste
Uploads, downloads and deletes images on WebDAV server within Obsidian notes.
YAOS
3 months ago by kavinsood
A zero-terminal, real-time sync engine powered by your own Cloudflare Worker.