From 9909d3b50665d894a625cbf80a0b6067e2e488df Mon Sep 17 00:00:00 2001 From: Jaken <841024639@qq.com> Date: Wed, 27 Jul 2022 10:53:43 +0800 Subject: [PATCH] fix Failure when uploading clipboard images with PicGo #3360 --- src/renderer/util/fileSystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/util/fileSystem.js b/src/renderer/util/fileSystem.js index d2b55137..a6ea5efe 100644 --- a/src/renderer/util/fileSystem.js +++ b/src/renderer/util/fileSystem.js @@ -154,7 +154,7 @@ export const uploadImage = async (pathname, image, preferences) => { if (typeof filepath !== 'string') { isPath = false const data = new Uint8Array(filepath) - filepath = path.join(tmpdir(), +new Date()) + filepath = path.join(tmpdir(), +new Date() + ".png") await fs.writeFile(filepath, data) } if (uploader === 'picgo') {