mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
Accept only images as postcards
This commit is contained in:
parent
3c15bdb80f
commit
0610a0bb0c
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ export default function PageEventDetail({ initialEvent }: PageEventDetailProps)
|
||||||
<EditableFilePicker
|
<EditableFilePicker
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) => setEvent({ ...event, postcard: URL.createObjectURL(e.target.files![0]) })}
|
onChange={(e: ChangeEvent<HTMLInputElement>) => setEvent({ ...event, postcard: URL.createObjectURL(e.target.files![0]) })}
|
||||||
placeholder={t("eventDetailsPostcardPlaceholder")}
|
placeholder={t("eventDetailsPostcardPlaceholder")}
|
||||||
|
accept={"image/*"}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
description={
|
description={
|
||||||
|
|
Loading…
Reference in a new issue