PHPackages                             locaine/lcn-file-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. [File &amp; Storage](/categories/file-storage)
4. /
5. locaine/lcn-file-uploader-bundle

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

locaine/lcn-file-uploader-bundle
================================

Easy ajax file uploads for Symfony2

2.0.6(10y ago)183021MITJavaScript

Since Feb 6Pushed 9y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (20)Used By (1)

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

[](#lcnfileuploaderbundle)

Easy ajax file uploads for Symfony 2. MIT License.

Inspired by [punkave/symfony2-file-uploaderbundle](https://github.com/punkave/symfony2-file-uploader-bundle) (no longer maintained)

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

[](#introduction)

This bundle provides enhanced file upload widgets based on the [BlueImp jQuery file uploader](https://github.com/blueimp/jQuery-File-Upload/) package. 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.

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

[](#installation)

### Step 1: Install dependencies

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

#### 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-file-uploader-bundle "~1.1"
```

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:

```
