More face fixes (#17630)

* update max upload to 20mb

* ensure cancel button doesn't submit form

* update nginx config
This commit is contained in:
Josh Hawkins 2025-04-10 08:17:13 -05:00 committed by GitHub
parent 049c5cfa9d
commit d8cde59aaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -82,7 +82,7 @@ http {
aio on; aio on;
# file upload size # file upload size
client_max_body_size 10M; client_max_body_size 20M;
# https://github.com/kaltura/nginx-vod-module#vod_open_file_thread_pool # https://github.com/kaltura/nginx-vod-module#vod_open_file_thread_pool
vod_open_file_thread_pool default; vod_open_file_thread_pool default;

View File

@ -25,7 +25,7 @@ type ImageEntryProps = {
export default function ImageEntry({ export default function ImageEntry({
onSave, onSave,
children, children,
maxSize = 10 * 1024 * 1024, // 10MB default maxSize = 20 * 1024 * 1024, // 20MB default
accept = { "image/*": [".jpeg", ".jpg", ".png", ".gif", ".webp"] }, accept = { "image/*": [".jpeg", ".jpg", ".png", ".gif", ".webp"] },
}: ImageEntryProps) { }: ImageEntryProps) {
const { t } = useTranslation(["views/faceLibrary"]); const { t } = useTranslation(["views/faceLibrary"]);

View File

@ -35,7 +35,9 @@ export default function UploadImageDialog({
</DialogHeader> </DialogHeader>
<ImageEntry onSave={onSave}> <ImageEntry onSave={onSave}>
<DialogFooter className="pt-4"> <DialogFooter className="pt-4">
<Button onClick={() => setOpen(false)}>{t("button.cancel")}</Button> <Button type="button" onClick={() => setOpen(false)}>
{t("button.cancel")}
</Button>
<Button variant="select" type="submit"> <Button variant="select" type="submit">
{t("button.save")} {t("button.save")}
</Button> </Button>