# Prevent client uploading images too big or too small

**URL:** https://forum.getkirby.com/t/prevent-client-uploading-images-too-big-or-too-small/29570
**Category:** Questions
**Created:** [September 25, 2023, 2:45pm UTC](https://forum.getkirby.com/t/prevent-client-uploading-images-too-big-or-too-small/29570 "2023-09-25T14:45:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mark\_E](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mark_e/32/10834_2.png) [@Mark\_E](https://forum.getkirby.com/u/Mark_E)
#### Post date: [September 25, 2023, 2:45pm UTC](https://forum.getkirby.com/t/prevent-client-uploading-images-too-big-or-too-small/29570/1 "2023-09-25T14:45:55Z")

</div>

If a client uploads a massive image is there a way to automatically resize it to something that doesn’t take up all their hosting space?

And, if they try and upload a mega small image they get a warning or are preventing from doing so?

---

<div class="post-metadata">

### Author: ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)
#### Post date: [September 25, 2023, 3:08pm UTC](https://forum.getkirby.com/t/prevent-client-uploading-images-too-big-or-too-small/29570/2 "2023-09-25T15:08:54Z")

</div>

See:

- [File blueprint | Kirby CMS](https://getkirby.com/docs/reference/panel/blueprints/file#accept)
- [Autoresize | Kirby CMS](https://getkirby.com/plugins/medienbaecker/autoresize)

---

<div class="post-metadata">

### Author: ![Mark\_E](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mark_e/32/10834_2.png) [@Mark\_E](https://forum.getkirby.com/u/Mark_E)
#### Post date: [September 25, 2023, 3:32pm UTC](https://forum.getkirby.com/t/prevent-client-uploading-images-too-big-or-too-small/29570/3 "2023-09-25T15:32:03Z")

</div>

In the file blueprint I can set maxsize and minsize. What happens if someone tries to upload an image above or below these sizes? Will the image get automatically resized, or simple rejected?

I see the plugin will be a core part of Kirby 4. I might wait till that comes out…

---

<div class="post-metadata">

### Author: ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)
#### Post date: [September 25, 2023, 4:40pm UTC](https://forum.getkirby.com/t/prevent-client-uploading-images-too-big-or-too-small/29570/4 "2023-09-25T16:40:12Z")

</div>

> [@Mark\_E](#):
>
> Will the image get automatically resized, or simple rejected?

Rejected. That’s why I suggested the plugins for images that are too big.
