You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
can't upload image with Picgo,but using picgo command is successful on my loacl #2915
when I upload image with Picgo , it show uploading all the time,and can't get any errors.
but i can upload this image by using Picgo command on my local.
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.
Activity
YalandHong commentedon Jan 21, 2022
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的功能尚未加入到正式版本中,不过应该会在下一个版本发布。
viskchen commentedon Jan 21, 2022
I'm using the latest code of develop.
I debuged this part in fileSystem.js,and found some problems.
1.path.join() required all string parameters.
2.it will lose suffix of the file by this operation.
viskchen commentedon Jan 26, 2022
Is there any plan to fix this? @Jocs
Jocs commentedon Jan 27, 2022
@viskchen Thanks for your report this issue, I'll check this feature again before release.
viskchen commentedon Jan 27, 2022
Welcome,MarkText is a great markdown editor,hope it becomes stronger and better to use!
Jocs commentedon Feb 3, 2022
@viskchen How to reproduce this issue?
viskchen commentedon Feb 7, 2022
Configure Picgo with gitee uploader
Choose Picgo in marktext
paste image in marktext,then you can see this issue
@Jocs
countryMan1993 commentedon Apr 12, 2022
mac 系统还是无法识别安装了 picgo
qqlyg commentedon May 2, 2022
macOS 用户请下载最新版本的
dmg文件。**还可以使用 Homebrew 来安装 PicGo:
brew install picgo --cask。你试一下命令行安装!我在Windows11下也遇到同样的问题。后来用使用powershell来安装 PicGo: `choco install picgo,就可以识别picgo了,但是依然不能上传剪切板粘贴的图片。
Fix picgo and cliScript uploader (marktext#2915)
Fix picgo and cliScript uploader (marktext#2915)
Fix picgo and cliScript uploader (marktext#2915)
Merge pull request #4 from Xander-C/fix_uploader
thinkingme commentedon Jul 20, 2022
I still have the same problem with the latest version, has this problem been solved?
beierzhijin commentedon Sep 22, 2022
I have rebuilt the fixed version from @Jakentop.
https://github.com/beierzhijin/marktext/releases/tag/v0.17.1
Thesoul20 commentedon Mar 28, 2023
But in the latest version 0.17.1, MarkText cannot find the local
picgoat all, as had discuss there #3118 (comment)I hope the issue will be solved in the next version.
Jocs commentedon Sep 22, 2026
Closing as a duplicate of #3360.
Same root cause, and both threads found it independently:
uploadByCommandcallspath.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.
fix(desktop): stop clipboard image uploads clobbering each other and …