<div dir="ltr"><div><div>Hi<br><br></div>In the Php.inc <span class="">file</span>  "upload_max_filesize"  value on default is  2MB  .Your  custom module  size may be greater than this  size.  so uploading of zip results in above error.  Change this   "upload_max_filesize" in php.inc and restart the apache . Try it once again <br><br></div><div>Regards,<br></div>Manu </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 26, 2015 at 2:19 PM, Estefan Civera [Italy] <span dir="ltr"><<a href="mailto:estefan.civera@gmail.com" target="_blank">estefan.civera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
after creation of my custom module I've decide to export and install in<br>
another vtiger instance.<br>
<br>
First, after read vtiger docs I create  a package<br>
<br>
$mod = Vtiger_Module::getInstance('MyModule');<br>
$package = new Vtiger_Package();<br>
$package->export($mod);<br>
<br>
this code create package correctly<br>
<br>
but where I go in module manager to install it vtiger  (6.2)gives me this<br>
message<br>
<br>
/Failed Invalid File provided for module import! Try Again./<br>
<br>
Can someone help me?<br>
<br>
<br>
<br>
-----<br>
Ing. Estefan Civera<br>
Vtiger developer and consultant<br>
<a href="http://www.estefancivera.net" rel="noreferrer" target="_blank">http://www.estefancivera.net</a><br>
Italy<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/Packaging-and-installing-custom-module-tp16714.html" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/Packaging-and-installing-custom-module-tp16714.html</a><br>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Regards,<br></div>Manu<br></div></div>
</div>