public function uploadAction(Request $request)
    {
        $form = $this->createForm(new FileImportType());
        $data = $form->handleRequest($request)->getData();
        $session = $this->getSession();

        try {
            $counters = $this->getSessionImporter()->handleUploadedFile($data['file']);
            if ($counters['new'] == 0 && $counters['updated'] == 0) {
                $session->getFlashBag()->set('warning', 'File import success, but not more modification found');
            } else {
                $session->getFlashBag()->set('info', "File import success, {$counters['new']} new and {$counters['updated']} update");
            }
        } catch (ImportException $e) {
            $session->getFlashBag()->set('error', 'Error while trying to import: '.$e->getMessage());
        }

        return $this->redirect($this->generateUrl('liip_translation_import'));
    }