Skip to content

Commit c0778ba

Browse files
authored
fix(frontend): restrict file explorer to show only .yaml, .yml, .zip, and .tar.gz files (kubeflow#11623)
* fix(frontend): restrict file explorer to show only .yaml, .yml, .zip, and .tar.gz files Signed-off-by: muzzlol <[email protected]> * test(frontend): update NewPipelineVersion snapshot for file filters Signed-off-by: muzzlol <[email protected]> --------- Signed-off-by: muzzlol <[email protected]>
1 parent 8ca7ec1 commit c0778ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

frontend/src/pages/NewPipelineVersion.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ export class NewPipelineVersion extends Page<NewPipelineVersionProps, NewPipelin
363363
style={{ position: 'relative' }}
364364
ref={this._dropzoneRef}
365365
inputProps={{ tabIndex: -1 }}
366+
accept='.yaml,.yml,.zip,.tar.gz'
366367
disabled={importMethod === ImportMethod.URL}
367368
>
368369
{dropzoneActive && <div className={css.dropOverlay}>Drop files..</div>}

frontend/src/pages/__snapshots__/NewPipelineVersion.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ exports[`NewPipelineVersion creating new pipeline renders the new pipeline page
9090
onChange={[Function]}
9191
/>
9292
<n
93+
accept=".yaml,.yml,.zip,.tar.gz"
9394
disableClick={true}
9495
disablePreview={false}
9596
disabled={true}

0 commit comments

Comments
 (0)