Category : image

I am handling file upload in an entity and it works fine with all image formats: /** * @var string * @ORMColumn(type="string", length=255, nullable=true) */ private $logo; /** * @var string */ private $logoTemp; /** * @var UploadedFile * @AssertFile(maxSize="1000000", maxSizeMessage="Logotipas didesnis nei 1MB.") */ private $logoFile; // … /** * Setter of LogoFile * ..

Read more

I’ve read and test this tutorial for uploading image with api platform and vich in symfony https://api-platform.com/docs/core/file-upload/#handling-file-upload but i don’t understand how to use it really in my app I use react-admin and i want use the field (dropzone) any ideas to find a complete tutorial ? for uploading in react-admin like this technique Thank’s ..

Read more

I’m doing the maintenance on a project developed with the symphony framework version 2.7. The problem I’m encountering is that the images aren’t displayed locally but they are displayed in the online version. The images are stored in web/uploads/Images. Following code is the one used to display the site’s logo: <img src=”{{ asset(setting.logo) }}?{{“now”|date(“d/m/Y H:i:s”)}}” ..

Read more