diff --git a/index.js b/index.js index 79b132b..2dab8cb 100644 --- a/index.js +++ b/index.js @@ -241,7 +241,7 @@ module.exports = function(S) { _uploadFile(filePath) { let _this = this, - fileKey = filePath.replace(_this.clientPath, '').substr(1).replace('\\', '/'); + fileKey = filePath.replace(_this.clientPath, '').substr(1).replace(/\\/g, '/'); S.utils.sDebug(`Uploading file ${fileKey} to bucket ${_this.bucketName}...`);