Feature Wiki
Tabs
Data Collection: Word count criteria for uploaded files
Page Overview
[Hide]- 1 Initial Problem
- 2 Conceptual Summary
- 3 User Interface Modifications
- 4 Additional Information
- 4.1 Involved Authorities
- 4.2 Technical Aspects
- 4.3 Privacy
- 4.4 Security
- 4.5 Contact
- 4.6 Funding
- 5 Discussion
- 6 Implementation
- 6.1 Description and Screenshots
- 6.2 Test Cases
- 6.3 Privacy
- 6.4 Approval
1 Initial Problem
Currently there is no option to verify the content of uploaded files in any way within the datacollection, even for filetypes that provide information about its content.
2 Conceptual Summary
Addition of a new criteria "Minimum Word Count" for the field type "file upload" where the user can add a number of words through a number input.
On entry creation or addition the uploaded file is checked and, if possible, the number of words are counted.
If the number is lower than the given criteria or if the words can not be counted (due to the file type or other errors) the entry creation/addition is denied.
Existing uploads are not affected.
Supported files that are text files (TXT, PHP, HTML, ...). PDF, ODT and other types may be added depending on compatibility.
3 User Interface Modifications
3.1 List of Affected Views
- Changes in:
- Data Collection » Tab 'Tables » Select a table » 'Add new field' » Select field type 'Fileupload'
- Data Collection » `Add new Entry` » Select a file with not enough words » 'Save'
3.2 User Interface Details
The sub form for the fileupload field is extended. A new error message is displayed if the new criteria is not fullfilled.


3.3 New User Interface Concepts
None
3.4 Accessibility Implications
None
4 Additional Information
4.1 Involved Authorities
- Author of the Request: Szmais, Ingmar [iszmais]
- Authority to Sign off on Conceptual Changes:
- Authority to Sign off Code Changes: Szmais, Ingmar [iszmais]
- Implementation of the feature is done by: Szmais, Ingmar [iszmais]
4.2 Technical Aspects
Depending on the uploaded filetype, the word count may be wrong or inconclusive.
4.3 Privacy
There are no privacy concerns. The semantic content of the files is not persistet in any way.
4.4 Security
There are no security concerns.
4.5 Contact
Person to be contacted in case of questions about the feature or for funding offers: Szmais, Ingmar [iszmais]
4.6 Funding
5 Discussion
Schmid, Fabian [fschmid] 2026-07-13: Please implement this as a \ILIAS\FileUpload\Processor\PreProcessor, an example for such an implementation is \ilCountPDFPagesPreProcessors.
JourFixe, ILIAS [jourfixe], 13 JUL 2026: We see the general need for this feature and discussed different options to implement it. We follow Fabian's request to implement this feature as a preprocessor. But we skip the final decision about this feature today and wait for the results of a meeting between Fabian and Ingmar about the possibility to implement an interface for the datacollection and a simple custom component that takes over the job of counting words a.s.o.
6 Implementation
Feature has been implemented by {Please add related profile link of this person}
6.1 Description and Screenshots
{ Description of the final implementation and screenshots if possible. }
6.2 Test Cases
Test cases completed at {date} by {user}
- {Test case number linked to Testrail} : {test case title}
6.3 Privacy
Information in privacy.md of component: updated at {date} by {user} | no change required
6.4 Approval
Approved at {date} by {user}.
Last edited: 13. Jul 2026, 15:54, Kunkel, Matthias [mkunkel]