A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
garak fix TreeBuilder deprecation. Fix #933 (#934)
fix TreeBuilder deprecation. Fix #933
Latest commit 7a115e5 Dec 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github add template for PRs (thanks to Doctrine) May 15, 2018
Adapter increase requirements Dec 25, 2017
Command micro-optimization: resolve native functions in global namespace Oct 6, 2018
DependencyInjection fix TreeBuilder deprecation. Fix #933 (#934) Dec 10, 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 micro-optimization: resolve native functions in global namespace Oct 6, 2018
Handler Ability to display object with DownloadHandler (#907) Oct 5, 2018
Injector increase requirements Dec 25, 2017
Mapping increase requirements Dec 25, 2017
Metadata fix tests Nov 2, 2018
Naming use DateTime instead of int Dec 5, 2018
Resources use DateTime instead of int Dec 5, 2018
Storage Allow overwriting of existing files on Flysystem Sep 17, 2018
Templating/Helper increase requirements Dec 25, 2017
Tests use DateTime instead of int Dec 5, 2018
Twig/Extension increase requirements Dec 25, 2017
Util micro-optimization: resolve native functions in global namespace Oct 6, 2018
.gitattributes add issue template Mar 16, 2018
.gitignore fix public setUp in tests May 17, 2017
.php_cs minor fix in cs/travis Nov 2, 2018
.travis.yml fix TreeBuilder deprecation. Fix #933 (#934) Dec 10, 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 Try to fix issue #929 Dec 1, 2018
phpunit.xml.dist fix tests Jun 6, 2018
runTests.sh Try to fix issue #929 Dec 1, 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.