2017 © Pedro Peláez
 

library uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

image

it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  • Tuesday, September 27, 2016
  • by fenrizbes
  • Repository
  • 7 Watchers
  • 0 Stars
  • 4,055 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 9 % Grown

The README.md

UploadableBundle

Scrutinizer Code Quality Build Status License Total Downloads Latest Unstable Version Latest Stable Version, (*1)

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior., (*2)

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., (*3)

Installation

Add it-blaster/uploadable-bundle to your composer.json file and run composer, (*4)

...
"require": {
    "it-blaster/uploadable-bundle": "1.0.*"
}
...

Register the bundle in your AppKernel.php, (*5)

...
new Fenrizbes\UploadableBundle\FenrizbesUploadableBundle(),
...

Configure it-blaster/uploadable-behavior, (*6)

Usage

Now you can use the uploadable form type:, (*7)

...
    ->add('MyFile', 'uploadable')
...

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 deletion - remove_label (string, default: 'remove') - the label for checkbox-control (if it's enabled) - file_constraints (array, default: null) - constraints for the file field, (*8)

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:, (*9)

...
fenrizbes_uploadable:
    root_path: /your/own/path
...

TODO

  • Delete previously uploaded files

The Versions

27/09 2016

dev-master

9999999-dev https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel

27/09 2016

v1.1.3

1.1.3.0 https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel

15/09 2016

v1.1.2

1.1.2.0 https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel

26/08 2016

v1.1.1

1.1.1.0 https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel

25/08 2016

v1.1.0

1.1.0.0 https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel

24/08 2016

dev-profit-3573

dev-profit-3573 https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel

30/04 2015

v1.0.1

1.0.1.0 https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel

24/04 2015

v1.0.0

1.0.0.0 https://github.com/it-blaster/uploadable-bundle

The extended Symfony's Form File Type based on it-blaster/uploadable-behavior

  Sources   Download

MIT

The Requires

 

by Yaroslav Gashuk

form symfony upload propel