A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
PHP Other
Latest commit dd7b5b8 Feb 24, 2017 @garak garak update branch alias
Permalink
Failed to load latest commit information.
Adapter big coding standard fix Jan 9, 2017
Command big coding standard fix Jan 9, 2017
DependencyInjection fix unordered imports Feb 8, 2017
Event big coding standard fix Jan 9, 2017
EventListener big coding standard fix Jan 9, 2017
Exception big coding standard fix Jan 9, 2017
Form big coding standard fix Jan 9, 2017
Handler get object mime type in DownloadHandler. Fix #589 Feb 24, 2017
Injector big coding standard fix Jan 9, 2017
Mapping Apply fixes from StyleCI Jan 10, 2017
Metadata Apply fixes from StyleCI Jan 10, 2017
Naming Apply fixes from StyleCI Jan 10, 2017
Resources No need translator injection in form type Jan 5, 2017
Storage Apply fixes from StyleCI Jan 10, 2017
Templating/Helper big coding standard fix Jan 9, 2017
Tests get object mime type in DownloadHandler. Fix #589 Feb 24, 2017
Twig/Extension big coding standard fix Jan 9, 2017
Util big coding standard fix Jan 9, 2017
.gitattributes export ignore runTests.sh Feb 24, 2017
.gitignore fix unordered imports Feb 8, 2017
.php_cs upgrade phpunit to 6 Feb 8, 2017
.travis.yml fix mongo version for travis Jan 4, 2017
CONTRIBUTING.md Various fixes in the CONTRIBUTING section and in the install doc Jul 3, 2015
README.md Mention generic "Symfony" instead of "Symfony2" Jan 10, 2017
UPGRADE.md Added upgrade docs from 0.13 to 1.0, to master Apr 26, 2016
VichUploaderBundle.php Defer RegisterPropelModelsPass Jan 17, 2017
composer.json update branch alias Feb 24, 2017
phpunit.xml.dist Add a few functional tests Oct 10, 2014
runTests.sh raise requirements Dec 31, 2016

README.md

VichUploaderBundle

Build Status Total Downloads Latest Unstable Version Latest stable Version

The VichUploaderBundle is a Symfony bundle that attempts to ease file uploads that are attached to ORM entities, MongoDB ODM documents, PHPCR ODM documents or Propel models.

  • Automatically name and save a file to a configured directory
  • Inject the file back into the entity or document when it is loaded from the datastore as an instance of Symfony\Component\HttpFoundation\File\File
  • Delete the file from the file system upon removal of the entity or document from the datastore
  • Templating helpers to generate public URLs to the file

All of this functionality is fully configurable to allow for app-specific customization.

Documentation

For usage documentation, see:

Resources/doc/index.md

If upgrading from a previous version, also check:

UPGRADE.md

Contributing

See the CONTRIBUTING file.

License

See the bundled LICENSE file.