mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-22 13:47:29 +02:00
More face fixes (#17630)
* update max upload to 20mb * ensure cancel button doesn't submit form * update nginx config
This commit is contained in:
parent
049c5cfa9d
commit
d8cde59aaf
@ -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;
|
||||||
|
@ -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"]);
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user