public function uploadFormAction(Request $request)
    {
        // create task object and form
        $userId = ($this->getUser() != null) ? $this->getUser()->getId() : rand();
        $partner = ($this->getUser() != null) ? $this->getUser()->getPartner() : null;

        /* @var $picture Picture */
        $smDatas = $this->get('dacorp.manager.dacorp_media')->setupDacorpMediaManager($userId, DacorpMediaManager::PARTNER_MEDIA_ID);
        if ($this->getRequest()->getMethod() != 'POST') {
            // $this->get('justmoov.manager.media')->feedFiles($smDatas['editId']);
        }

        $pictureForm = $this->createForm(new DacorpMediaType(), $partner, array('editId' => $smDatas['editId'], 'existingFiles' => json_encode($smDatas['existingFiles'])));

        //Template: JustmoovFrontBundle:Form:pictureUploadForm.html.twig

        return array(
            'pictureFormView' => $pictureForm->createView(),
            'pictureForm' => $pictureForm->createView(),
            'smDatas' => $smDatas
        );
    }