Download the PHP package it-blaster/uploadable-bundle without Composer
On this page you can find all versions of the php package it-blaster/uploadable-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download it-blaster/uploadable-bundle
More information about it-blaster/uploadable-bundle
Files in it-blaster/uploadable-bundle
Package uploadable-bundle
Short Description The extended Symfony's Form File Type based on it-blaster/uploadable-behavior
License MIT
Homepage https://github.com/it-blaster/uploadable-bundle
Informations about the package uploadable-bundle
UploadableBundle
The extended Symfony's Form File Type based on it-blaster/uploadable-behavior.
It provides the ability to easily upload files, show links to them and display checkbox-controls for deletion them (only from database) in your forms.
Installation
Add it-blaster/uploadable-bundle to your composer.json
file and run composer
Register the bundle in your AppKernel.php
Configure it-blaster/uploadable-behavior
Usage
Now you can use the uploadable
form type:
This type inherits all the file
type's options (except constraints
) and has own ones:
removable
(boolean, default: true) - display or not the checkbox-control for deletionremove_label
(string, default: 'remove') - the label for checkbox-control (if it's enabled)file_constraints
(array, default: null) - constraints for thefile
field
Configuration
The bundle has an only parameter root_path
that determines the path to the project's root directory.
Default value is %kernel.root_dir%/../web
. You can configure it in your config.yml
as follows:
TODO
- Delete previously uploaded files
All versions of uploadable-bundle with dependencies
symfony/framework-bundle Version ~2.1
it-blaster/uploadable-behavior Version 1.1.*