Closed trudbot closed 1 year ago
v2.4.0-beta.1
Windows
当图床中已经存在某个文件名的图片时,无法再上传相同文件名的图片。 经过测试:
2023-07-06 20:53:18 [PicGo INFO] Before transform 2023-07-06 20:53:18 [PicGo INFO] Transforming... Current transformer is [path] 2023-07-06 20:53:18 [PicGo INFO] Before upload 2023-07-06 20:53:18 [PicGo INFO] beforeUploadPlugins: renameFn running 2023-07-06 20:53:18 [PicGo INFO] Uploading... Current uploader is [github] 2023-07-06 20:53:22 [PicGo WARN] failed 2023-07-06 20:53:22 [PicGo ERROR] { "method": "PUT", "url": "htt", "statusCode": 422, "message": "Request failed with status code 422", "stack": {}, "response": { "status": 422, "statusCode": 422, "body": { "message": "Invalid request.\n\n\"sha\" wasn't supplied.", "documentation_url": "https://docs.github.com/rest/reference/repos#create-or-update-file-contents" } } }
这个问题比较容易影响用户体验:
建议每次上传时, 将文件名改为当前的时间戳, 避免冲突。
已经有自动时间戳重命名的配置。
前置阅读 | Pre-reading
PicGo的版本 | PicGo Version
v2.4.0-beta.1
系统信息 | System Information
Windows
功能请求 | Feature request
当图床中已经存在某个文件名的图片时,无法再上传相同文件名的图片。 经过测试:
这个问题比较容易影响用户体验:
建议每次上传时, 将文件名改为当前的时间戳, 避免冲突。