Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FallOutBoi's avatar

Question about dropzone validation

Hi, im building a form with dropzone in it. I was wondering if i would not check images for validation can someone just change the maximum file size number in their browser and submit the form? The script is on the same page.

0 likes
1 reply
bobbybouwmann's avatar
Level 88

Well basically yes! It's javascript that runs in the browser, so technically they can change it.

However you should have the same validation on your production environment! So make sure there is a upload limit on the server, but also in your validation. This way you should always be good to go ;)

1 like

Please or to participate in this conversation.