Skip to content

Image uploader to GitHub fails for copy/pasted image #2347

Closed

Description

@kzu

Description

Drag&drop of a local image file property works fine and uploads to GH.

Pasting image from clipboard fails and is replaced with local image path.

MarkTextPasteFails

Expected behavior:

Pasted image should be saved temporarily with some name (similarly to how files are named when uploaded to GH from local files), then uploaded, finally replaced in the markdown.

Actual behavior:

Upload fails and just the local file path is saved in the markdown.

Versions

  • Mark Text version: v0.16.2
  • Operating system: Windows 10 Pro 20H2, 19042.508

Activity

  1. kzu commented on Sep 23, 2020

    @kzu
    Author

    @Jocs I looked at your original PR introducing the feature, and I can't seem to find any logs or obvious mistakes. Images for local files are properly uploading to https://github.com/kzu/img (it's public even), so I'm thinking something specific to the pasting is involved here.

    Sorry for the direct ping. Just sent you a beer or two via PayPal, hoping that fixing this doesn't take a whole lot more than it takes to finish the drinks, hehe. Thanks a lot! 🙏

  2. ctjlewis commented on Oct 17, 2020

    @ctjlewis

    Same, if I could just find logs, this would be a lot easier to debug. Did you make any progress on this by chance @kzu? I put in a PR about using OAuth and handling this 100% for the user at #2364.

  3. kzu commented on Oct 20, 2020

    @kzu
    Author

    Nope, no fix or workaround :(

  4. lichever commented on Jan 2, 2022

    @lichever

    I met the same issue. Is there any workaround or fix on this bug?

  5. ctjlewis commented on Jan 2, 2022

    @ctjlewis

    I met the same issue. Is there any workaround or fix on this bug?

    No fix. The workaround is to use different software.

  6. KoenVanduffel commented on Jan 2, 2022

    @KoenVanduffel

    Running into the same issue. I drag and drop the images from explorer to Marktext. It will save them in a local assets folder but not upload to GitHub nor to SM.MS

    seems like this package isn't maintained any more. Do you have a suggestion for a different package?

  7. Jocs commented on Jan 14, 2022

    @Jocs
    Member

    @kzu @ALL Very sorry for replying now, I will update sm and Github image uploader over the weekend

  8. self-assigned this
    on Jan 14, 2022
  9. Jocs commented on Jan 16, 2022

    @Jocs
    Member

    A PR is submited to fix this issue.

  10. WenHv587 commented on Jul 19, 2022

    @WenHv587

    It hasn't been fixed yet?

  11. added
    🐛 bug
    🪲 pri/major
    on May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🪲 pri/major🐛 bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions