You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
То есть можно использовать либо прежний вариант с одним полем $photo, либо новый с двумя $photoUpload и $photoInfo ($photo)? Чтобы перейти от старого к новому достаточно изменить аннотацию свойства $photo (оставить только @Orm) и добавить свойство $photoUpload?
For field in the Entity class is private $photoInfo;
I try this but it's not working. Only the fields label shows, with no button to upload an image.
Help would be highly appreciated.
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:
Is it right?
The text was updated successfully, but these errors were encountered: