Skip to content

Commit

Permalink
fix Failure when uploading clipboard images with PicGo marktext#3360
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakentop committed Jul 27, 2022
1 parent aed36db commit 9909d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/util/fileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 9909d3b

Please sign in to comment.