Download the PHP package brezo-it/multi-file-upload without Composer
On this page you can find all versions of the php package brezo-it/multi-file-upload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brezo-it/multi-file-upload
More information about brezo-it/multi-file-upload
Files in brezo-it/multi-file-upload
Package multi-file-upload
Short Description TYPO3 extension: Form Framework enhancement for multi-file upload with FAL support, email attachments and database storage.
License GPL-2.0-or-later
Homepage https://github.com/brezo-it/typo3-multi-file-upload
Informations about the package multi-file-upload
Multi File Upload
TYPO3 extension for multi-file upload in the Form Framework.
Features
- Multi-image upload form element for TYPO3 Form Framework
- Preview gallery with lightbox support
- Delete functionality for uploaded files
- Email attachment support for multiple files
- Database storage with FAL file references (sys_file_reference)
- Bootstrap 5 compatible styling
- German and English localization
Requirements
- TYPO3 13.4 LTS
- PHP 8.2+
- EXT:form (TYPO3 Form Framework)
Installation
Usage
Form Editor
- Open the TYPO3 Form Editor
- Add a new element "Multi Image Upload" from the "Custom" group
- Configure allowed MIME types and upload folder as needed
YAML Configuration
Email Finisher
Two pre-configured email finishers with attachment support are available in the Form Editor:
- Multi-file email to receiver - Send to site administrator
- Multi-file email to sender - Send confirmation to form submitter
For YAML configuration, use the pre-configured finisher identifiers:
Or override an existing email finisher with the custom implementation class:
Database Finisher (with FAL support)
The standard TYPO3 SaveToDatabase finisher only stores file UIDs, not proper FAL references.
This extension provides AttachFilesToRecord which creates sys_file_reference records,
making uploaded images visible in the TYPO3 backend.
How it works:
- Use the core
SaveToDatabasefinisher to create the record (without file fields) - Use
AttachFilesToRecordto attach files viasys_file_referencerecords - The finisher reads the record UID from
{SaveToDatabase.insertedUids.0} - Images are immediately visible and editable in the TYPO3 backend
Example: Classified Ads / Marketplace Form
AttachFilesToRecord Options:
| Option | Type | Description |
|---|---|---|
table |
string | Target database table |
recordUid |
string | UID of the record (use {SaveToDatabase.insertedUids.0}) |
storagePid |
int | Page ID for sys_file_reference records |
elements |
array | Mapping of form elements to database columns |
TCA configuration for the images field:
Configuration Options
Form Element Properties
| Property | Type | Default | Description |
|---|---|---|---|
saveToFileMount |
string | 1:/user_upload/ |
FAL storage path for uploads |
allowedMimeTypes |
array | image/jpeg, image/png, image/bmp |
Allowed file types |
imageMaxWidth |
int | 400 |
Max width for preview images |
imageMaxHeight |
int | 400 |
Max height for preview images |
imageLinkMaxWidth |
int | 1200 |
Max width for lightbox images |
Rendering Options (CSS Classes)
| Option | Default | Description |
|---|---|---|
previewListClass |
row g-3 |
Container class for image grid |
previewItemClass |
col-md-4 col-lg-3 mb-3 |
Class for each image item |
previewImageWrapperClass |
card |
Wrapper class for image card |
deleteWrapperClass |
form-check card-footer |
Class for delete checkbox wrapper |
File Structure
Customization
Custom Styling
The extension's CSS is automatically loaded via <f:asset.css> when the form element is rendered.
To override styles, add your own CSS with higher specificity or use the Asset ViewHelper in your template:
Or include it globally via TypoScript (loaded on all pages):
Custom Templates
Override templates via TypoScript:
Author
Maik Preuss
License
GPL-2.0-or-later