From 939a3f54e00829a65cc2d9b2cfaf679cfa35a1b2 Mon Sep 17 00:00:00 2001 From: purocean Date: Wed, 2 Mar 2022 18:14:06 +0800 Subject: [PATCH] upd: update picgo upload file name --- src/renderer/plugins/image-hosting-picgo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/plugins/image-hosting-picgo.ts b/src/renderer/plugins/image-hosting-picgo.ts index 70878490..b0f45348 100644 --- a/src/renderer/plugins/image-hosting-picgo.ts +++ b/src/renderer/plugins/image-hosting-picgo.ts @@ -54,7 +54,7 @@ export default { logger.debug('upload', url, file) - const tmpFileName = 'picgo-tmp-file-' + file.name + const tmpFileName = 'picgo-' + file.name try { const { data: { path } } = await ctx.api.writeTmpFile(tmpFileName, await ctx.utils.fileToBase64URL(file), true)