Fix: Add current context for avoid method execution in bad context, you
can add this test in your method : eg if($currentcontext != 'formfile')
return;
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop