diff --git a/lib/modules/storage/reference.js b/lib/modules/storage/reference.js index b58a3007..c1d75fba 100644 --- a/lib/modules/storage/reference.js +++ b/lib/modules/storage/reference.js @@ -96,7 +96,8 @@ export default class StorageReference extends ReferenceBase { * @return {Promise} */ putFile(filePath: Object, metadata: Object = {}): Promise { - const _filePath = filePath.replace('file://', ''); + let _filePath = filePath.replace('file://', ''); + if (_filePath.includes('%')) _filePath = decodeURI(_filePath); return new StorageTask( UPLOAD_TASK, getNativeModule(this._storage).putFile(this.path, _filePath, metadata),