feat(FE): Enforce 2MB file limit and improve FileInput

This commit is contained in:
rstubryan
2026-01-06 20:38:51 +07:00
parent fa199e4879
commit 6f90bd604a
4 changed files with 28 additions and 1 deletions
@@ -1584,6 +1584,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
</>
) : (
<FileInput
accept='.pdf,.jpg,.jpeg,.png'
name={`deliveries.${idx}.document`}
onChange={(e) => {
const file = e.target.files?.[0];