Developed with love by KnpLabs Hire us for your project!
1444

VichUploaderBundle

by dustin10

A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.

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, or PHPCR ODM
documents.

  • 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:

docs/index.md

If upgrading from a previous version, also check:

UPGRADE.md

Contributing

See the CONTRIBUTING file.

License

See the bundled LICENSE file.

Copyright (c) 2011 Dustin Dobervich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
  • Merge pull request #1138 from dustin10/fix-translations
    By web-flow, 5 months ago
  • fix translations
    By garak, 5 months ago
  • By garak, 5 months ago
  • Merge pull request #1135 from dustin10/cache-warmer
    By web-flow, 5 months ago
  • Merge branch 'master' into cache-warmer
    By web-flow, 5 months ago
  • ✨ implement cache warmer
    By garak, 5 months ago
  • Merge pull request #1133 from StudioMaX/fix-cs
    By web-flow, 6 months ago
  • Fix CS
    By StudioMaX, 6 months ago
  • Deprecation since Symfony 5.1: NodeDefinition::setDeprecated() requires 3 arguments (#1132)
    By web-flow, 6 months ago
  • Merge pull request #1131 from napestershine/patch-1
    By web-flow, 6 months ago
  • Update namers.md
    By web-flow, 6 months ago
  • fix to problem with uppercase extension, issue #1125 (#1127)
    By web-flow, 6 months ago
  • Merge pull request #1122 from VincentLanglet/exception
    By web-flow, 7 months ago
  • Add VichUploaderExceptionInterface
    By VincentLanglet, 7 months ago
  • Merge pull request #1120 from le-yak/master
    By web-flow, 7 months ago
  • Reduce number of calls to File::getMimeType() during upload.
    By François Felix, 7 months ago
  • remove templating configuration (#1107)
    By web-flow, 8 months ago
  • style fix
    By garak, 8 months ago
  • Merge branch 'remove-deprecated-code'
    By garak, 8 months ago
  • remove obsolete sandbox link
    By garak, 8 months ago
  • cleanup code
    By garak, 8 months ago
  • improve issue templates
    By garak, 9 months ago
  • Merge pull request #1100 from dustin10/dowload-attribute
    By web-flow, 9 months ago
  • By garak, 9 months ago
  • DownloadHandler: set fallback filename in download response headers (#1098)
    By web-flow, 10 months ago
  • more consistent annotations in example
    By garak, 10 months ago
  • Avoid the creation of a notnull constraint (#1095)
    By garak, 10 months ago
  • Merge pull request #1092 from tgalopin/fix-bc-break-flysystem
    By web-flow, 10 months ago
  • Merge pull request #1093 from tgalopin/fix-phpunit-warnings
    By web-flow, 10 months ago
  • Fix PHPUnit 8 warnings
    By tgalopin, 10 months ago