1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 14:44:21 +00:00

Accept only images as postcards

This commit is contained in:
Steffo 2022-06-10 16:35:08 +02:00
parent 3c15bdb80f
commit 0610a0bb0c
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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={