Skip to content

Field iphp_file don't show completely #40

Open

Description

@silasrm

Hi,

Congratulation for the bundle, this is great.

I'm using in 4 different entities, but in User entitity, after update to v2.5 or v2.5.1 the file field doesn't appear in form https://cloudup.com/c0COfPVY8yB. In the others, everything is ok https://cloudup.com/cSVF0MSU8sq.

Follow my config:

//form type
->add(
                'foto',
                'iphp_file',
                array(
                    'label' => 'Foto',
                    'required' => false,
                )
            )
// entity 
/**
     * @var array
     *
     * @Assert\File(maxSize="1M", mimeTypes={"image/jpeg", "image/pjpeg", "image/png", "image/x-png"})
     * @FileStore\UploadableField(mapping="foto_usuario")
     * @ORM\Column(name="foto", type="array", nullable=true)
     **/
    protected $foto;
// config
        foto_usuario:
            upload_dir:  %kernel.root_dir%/../web/uploads/usuarios/imagens/
            upload_path: /uploads/usuarios/imagens
            namer:
                property:
                    params: { field : id }
                translit: ~

With this same code, but version v0.2.3, all run without problem!

Thank's!

Activity

  1. silasrm commented on Sep 2, 2015

    @silasrm
    Author

    The difference between UserType and the others 3 is: this type don't have a data_class, because this contains field of 2 entities (User and UserProfile).

    Thank's

  2. silasrm commented on Jul 4, 2019

    @silasrm
    Author

    :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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