Skip to content

Commit 3978aab

Browse files
authored
feat(trace): Only allow zip files to be selected for upload (#37905)
1 parent 60ebe94 commit 3978aab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/trace-viewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pwsh bin/Debug/netX/playwright.ps1 show-trace trace.zip
3939

4040
### Using [trace.playwright.dev](https://trace.playwright.dev)
4141

42-
[trace.playwright.dev](https://trace.playwright.dev) is a statically hosted variant of the Trace Viewer. You can upload trace files using drag and drop or via the `Select file(s)` button.
42+
[trace.playwright.dev](https://trace.playwright.dev) is a statically hosted variant of the Trace Viewer. You can upload a trace file using drag and drop or via the `Select file` button.
4343

4444
Trace Viewer loads the trace entirely in your browser and does not transmit any data externally.
4545

packages/trace-viewer/src/ui/workbenchLoader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export const WorkbenchLoader: React.FunctionComponent<{
215215
input.type = 'file';
216216
input.click();
217217
input.addEventListener('change', e => handleFileInputChange(e));
218-
}} type='button'>Select file(s)</button>
218+
}} type='button'>Select file</button>
219219
<div style={{ maxWidth: 400 }}>Playwright Trace Viewer is a Progressive Web App, it does not send your trace anywhere,
220220
it opens it locally.</div>
221221
</div>}

0 commit comments

Comments
 (0)