PHPackages                             locaine/lcn-image-uploader-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. locaine/lcn-image-uploader-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

locaine/lcn-image-uploader-bundle
=================================

Easy ajax image file uploads for Symfony2

2.0.4(10y ago)01.2k[1 issues](https://github.com/FaiblUG/LcnImageUploaderBundle/issues)MITPHP

Since Feb 10Pushed 10y ago2 watchersCompare

[ Source](https://github.com/FaiblUG/LcnImageUploaderBundle)[ Packagist](https://packagist.org/packages/locaine/lcn-image-uploader-bundle)[ RSS](/packages/locaine-lcn-image-uploader-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

LcnFileUploaderBundle
=====================

[](#lcnfileuploaderbundle)

Easy ajax image file uploads for Symfony 2. MIT License. Built upon [LcnFileUploaderBundle](https://github.com/FaiblUG/LcnFileUploaderBundle).

Introduction
------------

[](#introduction)

This bundle provides enhanced image upload widgets based on [LcnFileUploaderBundle](https://github.com/FaiblUG/LcnFileUploaderBundle). Both drag and drop and multiple file selection are fully supported in compatible browsers.

The uploader delivers files to a folder that you specify. If that folder already contains files, they are displayed side by side with new files, as existing files that can be removed.

The bundle can automatically scale images to sizes you specify. The provided synchronization methods make it possible to create forms in which attached files respect "save" and "cancel" operations.

If need to handle image uploads only, you should check out [LcnImageUploaderBundle](https://github.com/FaiblUG/LcnImageUploaderBundle) which extends LcnFileUploaderBundle.

Installation
------------

[](#installation)

### Step 1: Install dependencies

[](#step-1-install-dependencies)

#### LcnFileUploaderBundle

[](#lcnfileuploaderbundle-1)

Install the required [LcnFileUploaderBundle](https://github.com/FaiblUG/LcnFileUploaderBundle).

#### jQuery

[](#jquery)

Make sure that [jQuery](http://jquery.com/) is included in your html document:

```

```

#### Underscore.js

[](#underscorejs)

Make sure that [Underscore.js](http://underscorejs.org/) is included in your html document

```

```

### Step 2: Download the Bundle

[](#step-2-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require locaine/lcn-image-uploader-bundle "~1.0"
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 3: Enable the Bundle

[](#step-3-enable-the-bundle)

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
