Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Remove outdated comment
istarkov55ebeaff97c4
diff --git a/packages/asset-uploader/src/utils/get-asset-path.ts b/packages/asset-uploader/src/utils/get-asset-path.tsindex a12c48a13f..7079162c66 100644--- a/packages/asset-uploader/src/utils/get-asset-path.ts+++ b/packages/asset-uploader/src/utils/get-asset-path.ts@@ -24,10 +24,6 @@ export const getAssetPath = (asset: DbAsset) => {if (asset.location === Location.REMOTE && s3Envs.success) {if (s3Envs.data.ASSET_CDN_URL) {const cndUrl = new URL(s3Envs.data.ASSET_CDN_URL);- // We encode file name during upload,- // see /packages/asset-uploader/src/targets/s3/upload.ts "Key: encodeURIComponent(uniqueFilename)"- // here we need to encode file name, i.e cndUrl.pathname = encodeURIComponent(fileName)- // but having that fileName = encodeURIComponent(asset.name) we are doing double encodingcndUrl.pathname = asset.name;return cndUrl.toString();}