Skip to content

can't upload image with Picgo,but using picgo command is successful on my loacl #2915

Closed as duplicate

Description

@viskchen

Question description

when I upload image with Picgo , it show uploading all the time,and can't get any errors.
image
but i can upload this image by using Picgo command on my local.
image

Activity

  1. YalandHong commented on Jan 21, 2022

    @YalandHong

    Which version of MarkText did you use?

    AFAIK, PicGo(#2890) was just added to the dev branch several days ago. Maybe it'll be released in the next stable version.


    你用的是哪个版本的MarkText?

    PicGo的功能尚未加入到正式版本中,不过应该会在下一个版本发布。

  2. added
    🐤 blocked/need info
    on Jan 21, 2022
  3. viskchen commented on Jan 21, 2022

    @viskchen
    Author

    I'm using the latest code of develop.

    I debuged this part in fileSystem.js,and found some problems.

    image

    1.path.join() required all string parameters.
    2.it will lose suffix of the file by this operation.

  4. viskchen commented on Jan 26, 2022

    @viskchen
    Author

    Is there any plan to fix this? @Jocs

  5. Jocs commented on Jan 27, 2022

    @Jocs
    Member

    @viskchen Thanks for your report this issue, I'll check this feature again before release.

  6. added
    🐛 bug
    and removed
    🐤 blocked/need info
    on Jan 27, 2022
  7. self-assigned this
    on Jan 27, 2022
  8. viskchen commented on Jan 27, 2022

    @viskchen
    Author

    @viskchen Thanks for your report this issue, I'll check this feature again before release.

    Welcome,MarkText is a great markdown editor,hope it becomes stronger and better to use!

  9. Jocs commented on Feb 3, 2022

    @Jocs
    Member

    @viskchen How to reproduce this issue?

  10. viskchen commented on Feb 7, 2022

    @viskchen
    Author
    1. Configure Picgo with gitee uploader

    2. Choose Picgo in marktext

    3. paste image in marktext,then you can see this issue

    @Jocs

  11. countryMan1993 commented on Apr 12, 2022

    @countryMan1993

    mac 系统还是无法识别安装了 picgo

  12. qqlyg commented on May 2, 2022

    @qqlyg

    mac 系统还是无法识别安装了 picgo

    macOS 用户请下载最新版本的 dmg 文件。

    **还可以使用 Homebrew 来安装 PicGo: brew install picgo --cask。
    你试一下命令行安装!我在Windows11下也遇到同样的问题。后来用使用powershell来安装 PicGo: `choco install picgo,就可以识别picgo了,但是依然不能上传剪切板粘贴的图片。

  13. added a commit that references this issue on Jul 19, 2022
  14. thinkingme commented on Jul 20, 2022

    @thinkingme

    I still have the same problem with the latest version, has this problem been solved?

  15. beierzhijin commented on Sep 22, 2022

    @beierzhijin

    I still have the same problem with the latest version, has this problem been solved?

    I have rebuilt the fixed version from @Jakentop.
    https://github.com/beierzhijin/marktext/releases/tag/v0.17.1

  16. Thesoul20 commented on Mar 28, 2023

    @Thesoul20

    I still have the same problem with the latest version, has this problem been solved?

    I have rebuilt the fixed version from @Jakentop. https://github.com/beierzhijin/marktext/releases/tag/v0.17.1

    But in the latest version 0.17.1, MarkText cannot find the local picgo at all, as had discuss there #3118 (comment)

    I hope the issue will be solved in the next version.

  17. Jocs commented on Sep 22, 2026

    @Jocs
    Member

    Closing as a duplicate of #3360.

    Same root cause, and both threads found it independently: uploadByCommand calls path.join(os.tmpdir(), Date.now()) with a number, which throws into a swallowed rejection — hence PicGo hanging on "Loading" forever — and the temp file it would have written carries no extension, so PicGo cannot infer the MIME type either. Thanks for screenshotting exactly that code.

    #3360 is kept as the canonical because it isolates the variable (local images upload fine, clipboard images do not). Both linked PRs (#3296 here, #3366 there) are closed unmerged, so the fix is still open for anyone who wants to pick it up.

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

Metadata

Metadata

Assignees

Labels

🐛 bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions