mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Make image path relative
This commit is contained in:
@@ -26,7 +26,7 @@ function copyImage (filePath, storageKey) {
|
||||
if (!fs.existsSync(imageDir)) fs.mkdirSync(imageDir)
|
||||
const outputImage = fs.createWriteStream(path.join(imageDir, basename))
|
||||
inputImage.pipe(outputImage)
|
||||
resolve(`${targetStorage.path}/images/${basename}`)
|
||||
resolve(basename)
|
||||
} catch (e) {
|
||||
return reject(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user