This commit is contained in:
Jaken 2024-06-12 14:47:38 +08:00 committed by GitHub
commit 557f4ae290
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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') {