A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
PHP Other
Latest commit eea279e Jul 16, 2018
Permalink
Failed to load latest commit information.
.github add template for PRs (thanks to Doctrine) May 15, 2018
Adapter increase requirements Dec 25, 2017
Command increase requirements Dec 25, 2017
DependencyInjection cs fixes Jun 9, 2018
Entity increase requirements Dec 25, 2017
Event increase requirements Dec 25, 2017
EventListener increase requirements Dec 25, 2017
Exception increase requirements Dec 25, 2017
Form Check if parent is null (#888) Jul 9, 2018
Handler increase requirements Dec 25, 2017
Injector increase requirements Dec 25, 2017
Mapping increase requirements Dec 25, 2017
Metadata increase requirements Dec 25, 2017
Naming Uses Polyfill\FileExtensionTrait in all files namers. Jan 11, 2018
Resources Fix doc Jul 16, 2018
Storage do not try to save dimensions on non-image files Apr 4, 2018
Templating/Helper increase requirements Dec 25, 2017
Tests cs fixes Jun 9, 2018
Twig/Extension increase requirements Dec 25, 2017
Util increase requirements Dec 25, 2017
.gitattributes add issue template Mar 16, 2018
.gitignore fix public setUp in tests May 17, 2017
.php_cs increase requirements Dec 25, 2017
.travis.yml fix tests Jun 6, 2018
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 add a note about new type-hints. See #829 Jan 29, 2018
VichUploaderBundle.php Merge branch 'master' into optional-deps Jun 5, 2018
composer.json allow phpunit7-compat version of SymfonyDependencyInjectionTest Jun 5, 2018
phpunit.xml.dist fix tests Jun 6, 2018
runTests.sh remove composer.phar in runTests.sh Jan 18, 2018

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.