franzwilding/united-one-upload-bundle

This package is abandoned and no longer maintained. The author suggests using the franzwilding/united-one-upload-bundle package instead.

Symfony file upload type for United CMS

Installs: 133

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

dev-master 2018-12-04 08:12 UTC

This package is auto-updated.

Last update: 2022-02-01 12:46:52 UTC


README

File & Image upload form type for united cms. Files can be uploaded to the webserver or any other third party service. You can simply create your own custom upload handler to upload to any API.

Default implementations:

  • simple file upload
  • cloudinary file (image & raw) upload

Upload field type

Installation

Install symfony

composer create-project symfony/framework-standard-edition

Install UnitedOneUploadBundle

composer require franzwilding/united-one-upload-bundle

Register United bundles

/* 
 * Optional, if you want to use the Upload bundle with United CMS 
 * new United\CoreBundle\UnitedCoreBundle(),
 * new United\OneBundle\UnitedOneBundle(), 
 */

new United\OneUploadBundle\UnitedOneUploadBundle(), 

Add UnitedOneUploadBundle fields as twig form resource and add the register it for assetic.

# Twig Configuration
twig:
    form:
      resources:
          - UnitedOneUploadBundle:Form:fields.html.twig

# Assetic Configuration
assetic:
    bundles:        [ 'UnitedOneUploadBundle' ]

Use the new form types:

united_file, united_cloudinary_file

Check out the Getting started tutorial (Comming soon)