1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Remove encodeURI

This commit is contained in:
asmsuechan
2017-07-01 18:07:16 +09:00
parent 927981bf30
commit 032b5a59f2
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ function copyImage (filePath, storageKey) {
const basename = `${imageName}${imageExt}`
const outputImage = fs.createWriteStream(path.join(targetStorage.path, 'images', basename))
inputImage.pipe(outputImage)
resolve(`${encodeURI(targetStorage.path)}/images/${encodeURI(basename)}`)
resolve(`${targetStorage.path}/images/${basename}`)
} catch (e) {
return reject(e)
}