renmu123 / obsidian-image-auto-upload-plugin

auto upload image with picgo
MIT License
350 stars 38 forks source link

截图到剪贴板粘贴时上传失败,upload failed check dev console #142

Open EvanVV opened 9 months ago

EvanVV commented 9 months ago

问题描述:

从资源管理器里边复制图片粘贴到OB里头能正常上传,将截图工具写入到剪贴板的图片文件粘贴到OB里头则上传失败

测试使用了系统(Windows10 LTSC2021)自带的截图以及第三方截图(PicPick),在将剪贴板内截图粘贴到OB时均不能上传, 提示如下:

upload failed check dev console

OB控制台的报错截图:

image

Picgo日志如下:

2024-02-17 14:26:55 [PicGo ERROR] 
------Error Stack Begin------
Error: ENOENT: no such file or directory, open 'C:\Users\evan\AppData\Roaming\picgo\picgo-clipboard-images\202402171426624.png.1320212789'
-------Error Stack End------- 
2024-02-17 14:32:50 [PicGo ERROR] 
------Error Stack Begin------
Error: ENOENT: no such file or directory, open 'C:\Users\evan\AppData\Roaming\picgo\picgo-clipboard-images\202402171432543.png.3414515144'
-------Error Stack End------- 
2024-02-17 14:35:00 [PicGo ERROR] 
------Error Stack Begin------
Error: ENOENT: no such file or directory, open 'C:\Users\evan\AppData\Roaming\picgo\picgo-clipboard-images\202402171435225.png.361845010'
-------Error Stack End------- 

误打误撞解决:

根据Picgo日志,发现在C:\Users\evan\AppData\Roaming\picgo\目录下并不存在picgo-clipboard-images目录

遂手动建立此目录,问题解决。

怀疑是权限问题,未做进一步验证。