Restrict the upload of zero byte (empty) files

Created on 2 March 2023, over 1 year ago
Updated 30 November 2023, 7 months ago

Problem/Motivation

Its a requirement in our application that accepts user files (txt,docx,pdf) , to restrict users from uploading files that are empty or blank which makes the file size zero.
Such file upload must not be accepted and user must be displayed an error for uploading empty files.
I have searched for the issues in file module, but was unable to find anything that matches our requirement.

Steps to reproduce

Proposed resolution

If an additional validator could be added in the file module that checks if the file size is zero and returns error to user.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

โœจ Feature request
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
File moduleย  โ†’

Last updated 3 days ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia asmasiddiquiCG

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024