Skip to content

Cannot use FileType because the name is already in use  #49

@rifats

Description

@rifats

Hello!
After bundle update I have the error in SonataAdmin:
Compile Error: Cannot use Symfony\Component\Form\Extension\Core\Type\FileType as FileType because the name is already in use.
... in vendor\iphp\filestore-bundle\Iphp\FileStoreBundle\Form\Type\FileTypeBindSubscriber.php at line 8

And second... Now we have three properties for use:

    /**
     * @ORM\Column(type="array")
     * @Assert\Image( maxSize="20M")
     * @FileStore\UploadableField(mapping="photo")
     **/
    private $photo;
    /**
     * Only for upload
     * @Assert\Image( maxSize="20M")
     * @FileStore\UploadableField(mapping="photo", fileDataProperty="photoInfo")
     **/
    private $photoUpload;
    /**
     * Only for store file info in db
     * @ORM\Column(type="array")
     **/
    private $photoInfo;

Is it right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions