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

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, 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.

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.
  • Check if parent is null (#888)
    By garak, 2 months ago
  • Merge pull request #887 from MrNicodemuz/FinnishLanguage
    By web-flow, 2 months ago
  • Add Finnish language translation file
    By oebabaluba, 2 months ago
  • Make docs more clear. (#876)
    By garak, 3 months ago
  • cs fixes
    By garak, 3 months ago
  • fix inconsistent quoted header in tests
    By garak, 3 months ago
  • fix tests
    By garak, 3 months ago
  • Merge pull request #725 from Koc/optional-deps
    By web-flow, 3 months ago
  • Merge branch 'master' into optional-deps
    By web-flow, 3 months ago
  • don't fail on deprecations
    By garak, 3 months ago
  • remove old phpunit config value
    By garak, 3 months ago
  • allow phpunit7-compat version of SymfonyDependencyInjectionTest
    By garak, 3 months ago
  • do not require doctrine annotations
    By garak, 3 months ago
  • improve docs :book:
    By garak, 4 months ago
  • add template for PRs (thanks to Doctrine)
    By garak, 4 months ago
  • oops! Fix
    By garak, 4 months ago
  • new issue templates (tnx to Doctrine)
    By garak, 4 months ago
  • add missing command configuration
    By garak, 5 months ago
  • do not try to save dimensions on non-image files
    By garak, 5 months ago
  • add issue template
    By garak, 6 months ago
  • Merge pull request #852 from royopa/patch-1
    By web-flow, 6 months ago
  • changed where console symfony is located
    By web-flow, 6 months ago
  • re-add customer file namer note
    By garak, 6 months ago
  • fix custom namer doc
    By garak, 6 months ago
  • add some type hints
    By garak, 6 months ago
  • Merge pull request #838 from benr77/patch-1
    By web-flow, 7 months ago
  • Correct doctype in constructor
    By web-flow, 7 months ago
  • fix knp-gaufrette-bundle version
    By garak, 7 months ago
  • Merge pull request #831 from ossinkine/issue-831
    By web-flow, 7 months ago
  • Fix `imagine_pattern` option behavior in VichImageType
    By ossinkine, 7 months ago