2017 © Pedro Peláez
 

symfony-bundle file-uploader-bundle

image

intaro/file-uploader-bundle

  • Monday, May 28, 2018
  • by rroma
  • Repository
  • 9 Watchers
  • 1 Stars
  • 965 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

File Uploader Bundle

About

This is Symfony2 bundle. The purpose of this bundle is to simplify the file uploading process. It moves files to storage after they were uploaded into temporary folder., (*1)

There are few supported storage types: - local filesystem - amazon s3, (*2)

Installation

Require the bundle in your composer.json file:, (*3)

``` json { "require": { "intaro/file-uploader-bundle": "dev-master", } }, (*4)


Register in AppKernel: ``` php // app/AppKernel.php class AppKernel extends SaasKernel { public function registerBundles() { $bundles = array( ... new Intaro\FileUploaderBundle\IntaroFileUploaderBundle(), ); } }

Install with composer:, (*5)

$ composer update intaro/file-uploader-bundle

Usage

In config: ``` yml # app/config/config.yml, (*6)

intaro_file_uploader: uploaders: local: image: path: http://www.app.local/images/ create: true allowed_types: ['image/jpeg', 'image/png', 'image/gif'] document: directory: path/to/another/attach/dir create: true allowed_types: ['application/pdf', 'application/rtf', 'application/vnd.ms-office'] aws_s3: video: service_id: aws.client_service_name path: https://s3-us-west-2.amazonaws.com/bucket-name/iamges/ bucket_name: some_bucket options: create: true acl: public-read ```, (*7)

In code: ```php, (*8)

public function uploadAction() { $files = $this->getRequest()->files->get('file');, (*9)

  $this->get('intaro.video_uploader')->upload($file);

}, (*10)

```, (*11)

The Versions

28/05 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Intaro Soft

symfony2 file upload

28/05 2018

v1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

by Intaro Soft

symfony2 file upload

25/08 2017

v1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by Intaro Soft

symfony2 file upload

27/06 2016

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Intaro Soft

symfony2 file upload

29/10 2014

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

by Intaro Soft

symfony2 file upload