Image To Lskypro Enhanced

by zgfdada
5
4
3
2
1
Score: 35/100
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. Upload local and remote note images to Lsky Pro with download, context-menu, and progress support

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Obsidian LskyPro Auto Upload Enhanced

An Obsidian plugin for uploading images to Lsky Pro. This maintained fork keeps the original clipboard and drag/drop workflow, and adds a cleaner implementation for local images, remote images, context-menu actions, and progress reporting.

What This Fork Adds

  • Compatibility with older Lsky Pro deployments that use:
    • POST /api/upload
    • token: <token> header
    • image form field
  • Compatibility with newer Lsky Pro deployments that use:
    • POST /api/v1/upload
    • Authorization: Bearer <token>
    • file form field
  • Configurable download folder for remote images
    • Leave it empty to follow Obsidian's attachment folder setting
  • Download all images now replaces remote links with note-relative local links
  • File and editor context-menu action:
    • Upload current note images to Lsky (auto-handle remote images)
  • Current-note upload flow now:
    • downloads remote images first
    • uploads images one by one
    • replaces note links with Lsky URLs
    • shows a single floating progress notice with success/failure details

Install

From source

npm install
npm run build

Copy the generated plugin files into:

<your-vault>/.obsidian/plugins/lskypro-auto-upload-enhanced

Then reload Obsidian.

Configuration

Open:

Settings -> Community plugins -> Image To Lskypro Enhanced

Important settings:

  • LskyPro 域名
    • Only fill the site base URL
    • Example: https://lsky.example.com
  • LskyPro Token
    • For new Lsky Pro: fill API token
    • For old Lsky Pro: fill the 32-character token from the user settings page
  • 图片下载目录
    • Leave empty to follow Obsidian attachment folder
    • Or set a dedicated folder such as attachments/clippings
  • Delete source file after you upload file
    • Deletes local source files after upload succeeds

Commands

Upload all images-All images in the current file

Uploads images referenced in the current note.

  • Local images are uploaded directly
  • Remote images are downloaded first, then uploaded
  • Links are replaced with Lsky URLs
  • A floating progress notice is shown during processing

Download all images

Downloads remote images referenced in the current note into the configured download folder, then replaces the note links with local relative links.

Upload all images - All notes in vault (reuse)

Runs the current-note upload logic across all Markdown notes in the vault.

Context Menu

This fork adds a context-menu entry for Markdown notes:

Upload current note images to Lsky (auto-handle remote images)

It appears in:

  • file explorer context menu for .md files
  • editor context menu for the current Markdown note

Frontmatter

You can control clipboard auto upload per note:

---
image-auto-upload: true
---

Set it to false to disable auto upload for that note.

Supported Input

  • Clipboard image paste
  • Drag and drop image files
  • Upload local note images by command
  • Download remote note images by command
  • Upload current note images from the context menu

Notes

  • After changing plugin code, reload or restart Obsidian.
  • If your old Lsky Pro instance returns 管理员关闭了接口, enable API access in the Lsky Pro admin panel.
  • If remote images are protected by cookies or anti-hotlink rules, download may still fail depending on the source site.

Credits