Skip to content

Unable to save the image uploader script #3289

Closed

Description

@Xander-C

Description

Unable to save the image uploader script, the button keeps invalid.

Steps to reproduce

  1. [Preferences]
  2. [Image]
  3. [Uploader]
  4. [Choose Command line script]
  5. [Enter the absolute path (Windows) of my bat file]

Expected behavior:

Able to click the save buttom

Actual behavior:

The buttom keep invalid
Snipaste_2022-06-07_01-39-15

Versions

  • MarkText version: v0.17.1
  • Operating system: Windows10

Activity

  1. added
    🐛 bug
    🪲 pri/major
    on May 16, 2026
  2. Jocs commented on Jul 2, 2026

    @Jocs
    Member

    Thanks for the detailed report! This was caused by the executable check only testing Unix permission bits (S_IXUSR/S_IXGRP/S_IXOTH), which don't apply on Windows — so the validation always failed and the Save button stayed disabled for your .bat file. The current code adds a dedicated Windows path in the is-executable handler (if (process.platform === 'win32') return stat.isFile()), so any existing file is now accepted and the Save button enables. This has been resolved as part of the editor/build rewrite, so I'm closing this. If you still hit it on a recent build, please reopen with the path you entered and your MarkText version and we'll take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/major🐛 bug🔭 area/ui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions