Download the PHP package sitegeist/fusionform-upload without Composer
On this page you can find all versions of the php package sitegeist/fusionform-upload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package fusionform-upload
Sitegeist.FusionForm.Upload
Alternate implementations of Neos.Fusion.Forms:Upload
The package implements file uploads for Fusion.Forms with the main deviation that uploaded files are persisted in a cache and not as persistent resources. This has the advantage that resources do not have to manually cleaned and are deleted after the configured cache period automatically.
To achieve this the package adds the classes \Sitegeist\FusionForm\Upload\Domain\CachedUploadedFile which is a version
of the psr-uploaded file that has an additional cache-identifier. For uploading multiple files the collection
\Sitegeist\FusionForm\Upload\Domain\CachedUploadedFileCollection is added aswell. For both classed type converters
are provided that ensure that values are cached and previously submitted values are restored for processing.
!!! This package does not support the RuntimeForm MultiStepProcess yet, this may be added in future versions !!!
Authors & Sponsors
- Martin Ficzel - [email protected]
The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.
Fusion prototype - Sitegeist.FusionForm.Upload:Field.Upload
Single file upload
The prototype Sitegeist.FusionForm.Upload:Field.Upload allows to render a single file field.
It will usually be rendered in a field-container together with a rendering of previously uploaded files.
The submitted value should be interpreted as \Sitegeist\FusionForm\Upload\Domain\CachedUploadedFile by the
receiving controller or the runtime form schema.
The according schema runtime forms will likely look like this.
Multio file upload
For multiple uploads the prototype Sitegeist.FusionForm.Upload:Field.Upload supports the field.multiple property.
It will usually be rendered in a field-container together with a rendering of previously uploaded files.
The submitted value should be interpreted as \Sitegeist\FusionForm\Upload\Domain\CachedUploadedFileCollection by the
receiving controller or the runtime form schema.
The according schema runtime forms will likely look like this.
Attaching uploaded files in emails
Since the files implement the interface \Psr\Http\Message\UploadedFileInterface the existing Email Action
can already handle those types.
CachedUploadedFileCollection can be assigned directly to the mail attachments.
UploadedFile caching
The uploaded files are persisted in the Sitegeist_FusionForm_Upload_UploadedFileCache which allows to
configure altenate cache backends and the cache lifetime.
Installation
Sitegeist.Taxonomy is available via packagist run composer require sitegeist/fusionform-upload to install.
We use semantic-versioning so every breaking change will increase the major-version number.
Contribution
We will gladly accept contributions. Please send us pull requests.
License
See LICENSE