From 0610a0bb0c7ecf9eade664102ea5f13844798489 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 10 Jun 2022 16:35:08 +0200 Subject: [PATCH] Accept only images as postcards --- pages/events/[slug].tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/events/[slug].tsx b/pages/events/[slug].tsx index d0e9df6..e235fa8 100644 --- a/pages/events/[slug].tsx +++ b/pages/events/[slug].tsx @@ -80,6 +80,7 @@ export default function PageEventDetail({ initialEvent }: PageEventDetailProps) ) => setEvent({ ...event, postcard: URL.createObjectURL(e.target.files![0]) })} placeholder={t("eventDetailsPostcardPlaceholder")} + accept={"image/*"} /> } description={