Skip to content

Commit

Permalink
Merge pull request #8254 from michaelchadwick/frontend-5875-add-file-…
Browse files Browse the repository at this point in the history
…upload-html-accept-types

Add template protection for filetypes on uploads with restrictions
  • Loading branch information
dartajax authored Dec 4, 2024
2 parents f1ee849 + 2fa0c73 commit 43e16a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/frontend/app/components/bulk-new-users.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<input
id="upload-{{templateId}}"
type="file"
accept=".csv, .tsv, .txt"
{{on "change" (pick "target.files" (perform this.updateSelectedFile))}}
disabled={{this.updateSelectedFile.isRunning}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<input
id="user-file"
type="file"
accept=".csv, .tsv, .txt"
{{on "change" (pick "target.files" this.updateSelectedFile)}}
data-test-user-upload
/>
Expand Down

0 comments on commit 43e16a3

Please sign in to comment.