We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf4129f commit 16fc733Copy full SHA for 16fc733
1 file changed
apps/sim/lib/uploads/providers/s3/client.ts
@@ -399,7 +399,10 @@ export async function getS3MultipartPartUrls(
399
* keys containing spaces or reserved characters still yield a valid URL.
400
*/
401
function buildObjectFallbackUrl(bucket: string, region: string, key: string): string {
402
- const encodedKey = key.split('/').map(encodeURIComponent).join('/')
+ const encodedKey = key
403
+ .split('/')
404
+ .map((segment) => encodeURIComponent(segment))
405
+ .join('/')
406
if (S3_CONFIG.endpoint) {
407
const base = S3_CONFIG.endpoint.replace(/\/+$/, '')
408
if (S3_CONFIG.forcePathStyle) {
0 commit comments