Skip to content

Commit

Permalink
Utvidet listen av lovlige filtyper med DOCX og TXT
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-arne committed Oct 16, 2024
1 parent aae3458 commit 99f6983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Filvelger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function Filvelger(props: FilvelgerProps) {
autoFocus={autoFocus}
id={inputId}
{...rest}
accept="image/png, image/jpeg, .pdf, .docx, .txt"
accept="image/png, image/jpeg, .pdf, .docx, .txt, text/plain"
multiple={allowMultiple}
type="file"
// TODO?: Støtte for drag&drop. Kan ikke bruke display: none. Eksempel på løsning: https://stackoverflow.com/a/44277812/15886307
Expand Down

0 comments on commit 99f6983

Please sign in to comment.