mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 10:11:56 +08:00
fix issue 3268
This commit is contained in:
parent
2bb405a03e
commit
d2eedef611
@ -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(), String(new Date().getTime()))
|
||||
await fs.writeFile(filepath, data)
|
||||
}
|
||||
if (uploader === 'picgo') {
|
||||
|
Loading…
Reference in New Issue
Block a user