{"success":false,"message":"upload error. see C:\\Users\\94452\\AppData\\Roaming\\picgo\\picgo.log for more detail."}
时间: 2023-07-30 08:09:01 浏览: 273
引用\[1\]:{"success":false,"message":"upload error. see C:\Users\ASUS\AppData\Roaming\picgo\picgo.log for more detail."} 引用\[2\]:应该是说出现了"message":"upload error"这个问题,然后要去picgo的日志(log)里面去看一下错误原因,不过我并没有去看 我略加搜索,发现了一些和我一样的错误但解决方案都不适合,最后又重新过了一下那位大佬的教程发现了问题:在设置仓库名的时候,格式是【用户名】/【仓库】,而我只写了仓库的名称,,就这样就解决了,记录一下,希望可以帮助到别人。 引用\[3\]:var result = window.cep.fs.writeFile(fileName, data, cep.encoding.Base64); if (0 == result.err) { …// success } else { …// fail } read a file. var path = "/tmp/test"; var result = window.cep.fs.readFile(path); if(result.err === 0){ //success alert(result.data); //result.data is file content } else { ...// fail } Read file with base64 encoding mode in which the read data after readFile called is converted to a base-encoded string. You need to decode this string to any format you want. The following is an example var path = "/tmp/test"; result = window.cep.fs.readFile(path, cep.encoding.Base64); if(result.err === 0){ //success var base64Data = result.data; var data = cep.encoding.convertion.b64_to_utf8(base64Data); } else { ...// fail } Create a process and check if it's running. var result = window.cep.process.createProcess("usr/X11/bin/xterm");
问题:{"success":false,"message":"upload error. see C:\\Users\\94452\\AppData\\Roaming\\picgo\\picgo.log for more detail."}
回答: 根据提供的引用内容,这个问题是关于上传错误的。错误信息是"upload error",并且建议查看C:\Users\94452\AppData\Roaming\picgo\picgo.log文件以获取更多详细信息。\[1\]根据引用\[2\]中的描述,可能是由于设置仓库名的格式不正确导致的问题。仓库名的格式应该是【用户名】/【仓库】,而你只写了仓库的名称。你可以尝试按照正确的格式设置仓库名来解决这个问题。另外,根据引用\[3\]中的代码,还可以尝试使用window.cep.fs.readFile函数来读取文件内容,并根据返回的结果进行相应的处理。
#### 引用[.reference_title]
- *1* *2* [Typora配置github图床踩坑记录:“success“:false,“message“:“upload error](https://blog.csdn.net/weixin_62012485/article/details/128460861)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v4^insert_chatgpt"}} ] [.reference_item]
- *3* [CEP 10 HTML Extension Cookbook](https://blog.csdn.net/m0_67316550/article/details/123309309)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v4^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文