This commit is contained in:
inaction 2024-06-12 18:02:19 +00:00 committed by GitHub
commit 1b4689f2dc
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') { if (typeof filepath !== 'string') {
isPath = false isPath = false
const data = new Uint8Array(filepath) const data = new Uint8Array(filepath)
filepath = path.join(tmpdir(), +new Date()) filepath = path.join(tmpdir(), String(new Date().getTime()))
await fs.writeFile(filepath, data) await fs.writeFile(filepath, data)
} }
if (uploader === 'picgo') { if (uploader === 'picgo') {