We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb59a55 commit 5391b8aCopy full SHA for 5391b8a
index.js
@@ -143,7 +143,7 @@ class S3Adapter {
143
// The location is the direct S3 link if the option is set,
144
// otherwise we serve the file through parse-server
145
getFileLocation(config, filename) {
146
- const fileName = encodeURIComponent(filename);
+ const fileName = filename.split('/').map(encodeURIComponent).join('/');
147
if (this._directAccess) {
148
if (this._baseUrl && this._baseUrlDirect) {
149
return `${this._baseUrl}/${fileName}`;
0 commit comments