Finally found it, here what I've done :
## declare 'javascript' in base.html.twig
{% block javascript %}{% endblock %}
## in my template
{% block javascript %}{% endblock %}
On 10 fév, 12:06, LionelFristot wrote:
> Hi,
>
> I'm trying to get this to work without any success :
>
> {% exte
Maybe you can try the post-validator way :
#Add something like that in your Form class
protected function checkFile()
{
$file = $this->getValue('file');//your file input name
$dir = $this->getValue('choosen_upload_dir');
if
// check if file exists
// throw an error (or