2017 © Pedro Peláez
 

ezplatform-bundle ezplatform-multi-file-upload

Multi File Upload for eZ Platform

image

ezsystems/ezplatform-multi-file-upload

Multi File Upload for eZ Platform

  • Tuesday, April 10, 2018
  • by ezrobot
  • Repository
  • 23 Watchers
  • 2 Stars
  • 48,755 Installations
  • JavaScript
  • 7 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 15 Versions
  • 10 % Grown

The README.md

ezsystems/ezplatform-multi-file-upload

Allows uploading multiple files as new content items at once., (*1)

Install

  1. From your eZ Platform installation, run composer:, (*2)

    $ composer require ezsystems/ezplatform-multi-file-upload
    
  2. Enable the bundle by adding:, (*3)

    new EzSystems\MultiFileUploadBundle\EzSystemsMultiFileUploadBundle(),
    

    to app/AppKernel.php., (*4)

  3. Setup routing by adding bundle configuration to app/config/routing.yml:, (*5)

    _eZPlatformMultiFileUpload:
       resource: "@EzSystemsMultiFileUploadBundle/Resources/config/routing.yml"
       prefix:   "%ezpublish_rest.path_prefix%"
    
  4. Clear cache and setup assets with $ composer run-script post-update-cmd, (*6)

    (if you use prod env make sure that it is set with $ export SYMFONY_ENV=prod first)., (*7)

Configuration

Example application configuration (app/config/config.yml):, (*8)

# ...

ez_systems_multi_file_upload:
    location_mappings:
        -   # gallery
            content_type_identifier: gallery
            mime_type_filter:
                - video/*
                - image/*
            mappings:
                -   # images
                    mime_types:
                        - image/jpeg
                        - image/jpg
                        - image/pjpeg
                        - image/pjpg
                        - image/png
                        - image/bmp
                        - image/gif
                        - image/tiff
                        - image/x-icon
                        - image/webp
                    content_type_identifier: image  # content type of new items
                    content_field_identifier: image # field of content type to pass file to  
                    name_field_identifier: name     # field of content type to pass filename to
                -   # videos
                    mime_types:
                        - video/avi
                        - video/mpeg
                        - video/quicktime
                        - video/mp4
                        - video/webm
                        - video/3gpp
                        - video/x-msvideo
                        - video/ogg
                    content_type_identifier: video
                    content_field_identifier: file
                    name_field_identifier: name

    default_mappings:
        -   # file
            mime_types:
                - image/svg+xml
                - application/msword
                - application/vnd.openxmlformats-officedocument.wordprocessingml.document
                - application/vnd.ms-excel
                - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
                - application/vnd.ms-powerpoint
                - application/vnd.openxmlformats-officedocument.presentationml.presentation
                - application/pdf
            content_type_identifier: file
            content_field_identifier: file
            name_field_identifier: name

    fallback_content_type:
        content_type_identifier: file
        content_field_identifier: file
        name_field_identifier: name

Default bundle configuration:, (*9)

parameters:
    ez_systems.multifile_upload.location_mappings: []

    ez_systems.multifile_upload.default_mappings:
        - # image
          mime_types:
            - image/jpeg
            - image/jpg
            - image/pjpeg
            - image/pjpg
            - image/png
            - image/bmp
            - image/gif
            - image/tiff
            - image/x-icon
            - image/webp
          content_type_identifier: image
          content_field_identifier: image
          name_field_identifier: name
        - # file
          mime_types:
            - image/svg+xml
            - application/msword
            - application/vnd.openxmlformats-officedocument.wordprocessingml.document
            - application/vnd.ms-excel
            - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
            - application/vnd.ms-powerpoint
            - application/vnd.openxmlformats-officedocument.presentationml.presentation
            - application/pdf
          content_type_identifier: file
          content_field_identifier: file
          name_field_identifier: name

    ez_systems.multifile_upload.fallback_content_type:
        content_type_identifier: file
        content_field_identifier: file
        name_field_identifier: name

The Versions

10/04 2018
10/10 2017

v0.1.3-beta1

0.1.3.0-beta1

Multi File Upload for eZ Platform

  Sources   Download

TTL-2.0

The Requires

 

The Development Requires

10/10 2017

v0.1.3-rc1

0.1.3.0-RC1

Multi File Upload for eZ Platform

  Sources   Download

TTL-2.0

The Requires

 

The Development Requires

10/10 2017

v0.1.3

0.1.3.0

Multi File Upload for eZ Platform

  Sources   Download

TTL-2.0

The Requires

 

The Development Requires

10/04 2017

dev-test

dev-test

Multi File Upload for eZ Platform

  Sources   Download

TTL-2.0

The Requires

 

The Development Requires

31/03 2017

v0.1.0-beta1

0.1.0.0-beta1

Multi File Upload for eZ Platform

  Sources   Download

TTL-2.0

The Requires

 

The Development Requires