# Permit the ability to accept or deny 0-byte files

**URL:** <https://discuss.liferay.com/t/permit-the-ability-to-accept-or-deny-0-byte-files/378>\
**Category:** Feedback\
**Tags:** product\
**Created:** [February 25, 2026, 7:31am UTC](https://discuss.liferay.com/t/permit-the-ability-to-accept-or-deny-0-byte-files/378 "2026-02-25T07:31:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![briansuh](https://dub1.discourse-cdn.com/flex014/user_avatar/discuss.liferay.com/briansuh/32/433_2.png) [@briansuh](https://discuss.liferay.com/u/briansuh)\
**Post date:** [February 25, 2026, 7:31am UTC](https://discuss.liferay.com/t/permit-the-ability-to-accept-or-deny-0-byte-files/378/1 "2026-02-25T07:31:17Z")

</div>

Liferay DXP permits the uploading of 0 byte files. However, there might be environments that do not need or want empty files to be present on their environments.

It would be good to permit a setting to allow or deny 0 byte files from being uploaded. To improve granularity of controls, it would be good to have this setting at various parts of Liferay that permit uploads, while also permitting a more global or instanced setting to toggle this functionality on or off.
