Skip to content

Commit 87b4255

Browse files
committed
Change dom file name
* filepath overrides filename and include relative path See here: https://www.npmjs.com/package/form-data
1 parent 2827b7a commit 87b4255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/utils/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function sendDoM(storybookUrl, stories, storybookConfig, options) {
5454
const form = new formData();
5555
for (const [storyId, storyInfo] of Object.entries(stories)) {
5656
const file = fs.readFileSync('doms/' + storyId + '.html');
57-
form.append('files', file, storyInfo.kind + ': ' + storyInfo.name + '.html');
57+
form.append('files', file, {filepath: storyInfo.kind + ': ' + storyInfo.name + '.html'});
5858
}
5959
form.append('resolution', storybookConfig.resolutions);
6060
form.append('browser', storybookConfig.browsers);

0 commit comments

Comments
 (0)