We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19130d0 commit c2b1f3dCopy full SHA for c2b1f3d
packages/plugin-assets/src/upload.js
@@ -101,7 +101,7 @@ async function upload({
101
} catch (error) {
102
handleError(`Could not read ${filePath}`, error);
103
}
104
- const path = `/${basename(filePath)}`;
+ const path = `${basename(filePath)}`;
105
const newAsset = {
106
name: path,
107
access: 'public',
packages/serverless-api/src/api/assets.ts
@@ -142,7 +142,7 @@ export async function createAssetVersion(
142
};
143
144
const form = new FormData();
145
- form.append('Path', asset.path);
+ form.append('Path', encodeURIComponent(asset.path));
146
form.append('Visibility', asset.access);
147
form.append('Content', asset.content, contentOpts);
148
0 commit comments