Commit 47929062 authored by f00wl's avatar f00wl 🦉

add asset for max upload size

parent f184c979
......@@ -77,6 +77,11 @@ class Theater
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\File(
* maxSize = "5M",
* mimeTypes = {"image/*"},
* mimeTypesMessage = "Taille limite de l'image: 5Mo"
* )
*/
private $logo;
......@@ -118,6 +123,11 @@ class Theater
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\File(
* maxSize = "5M",
* mimeTypes = {"image/*"},
* mimeTypesMessage = "Taille limite de l'image: 5Mo"
* )
*/
private $picture;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment