Skip to content

Prevent users from uploading empty files #2576

Open
@boussarg

Description

@boussarg

Current behavior

A student can upload a 0Byte sized file as an assessment.

Expected behavior / Resultado esperado / Résultat attendu

An upload of a 0Byte sized file should be refused (or a warning be emitted, or whatever...)
I have several students uploading 0Byte sized files, all of them were mistakes due to a badly created zip file.

Steps to reproduce / Pasos para reproducir / Étapes pour reproduire

Create a 0Byte sized file, upload it in the assessments section of a Chamilo instance.

Chamilo Version / Versión de Chamilo / Version de Chamilo

Chamilo 1.11 ? (Where is it written, readable by a teacher ?)
Edit: 1.11.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions