Skip to content

Commit 5391b8a

Browse files
author
Mike Patnode
committed
Don't encode / when returning urls. closes #75
1 parent cb59a55 commit 5391b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class S3Adapter {
143143
// The location is the direct S3 link if the option is set,
144144
// otherwise we serve the file through parse-server
145145
getFileLocation(config, filename) {
146-
const fileName = encodeURIComponent(filename);
146+
const fileName = filename.split('/').map(encodeURIComponent).join('/');
147147
if (this._directAccess) {
148148
if (this._baseUrl && this._baseUrlDirect) {
149149
return `${this._baseUrl}/${fileName}`;

0 commit comments

Comments
 (0)