Fix web online export (#1179)

This commit is contained in:
Bouh
2019-08-03 13:01:58 +02:00
committed by Florian Rival
parent a201d404ec
commit 0db9fd5b08

View File

@@ -51,7 +51,9 @@ module.exports = {
async.series(
allFiles.map((localFile, fileIndex) => callback => {
const body = fs.createReadStream(localFile);
const filename = path.relative(localDir, localFile);
// Convert backslashs in paths to forward slash as they won't
// work in AWS urls.
const filename = path.relative(localDir, localFile).replace(/\\/g,'/');
const fileExtension = path.extname(filename);
awsS3Client
.upload({