Fix: Add current context for avoid method execution in bad context, you
can add this test in your method : eg if($currentcontext != 'formfile')
return;