Fórum

how to increase max file size in php portlet

thumbnail
srikanth arroju, modificado 13 Anos atrás.

how to increase max file size in php portlet

Regular Member Postagens: 133 Data de Entrada: 03/10/09 Postagens Recentes
Hello All

im trying to increase max upload size in php portlet but i could not find php.ini file

in php portlet. i have created php.ini file under web-inf folder as mentioned by echo phpinfo();

but it is not taking the values mentioned in the php.ini file

i have also tried using ini_set() method to set upload max file size but it is not setting

the value of the upload_max _file_size is 2mb by default.but i dont know where that value
is set.
in my web.xml i have mentioned

<servlet>
		<servlet-name>buzzadmin</servlet-name>
		<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
		<init-param>
			<param-name>portlet-class</param-name>
			<param-value>com.liferay.util.bridges.php.PHPPortlet</param-value>
		</init-param>
<init-param>
<param-name>php-ini-file</param-name>
<param-value>WEB-INF/php.ini</param-value>
</init-param>
		<load-on-startup>0</load-on-startup>
	</servlet>


but it is throwing

20:11:05,453 ERROR [PHPPortlet:213] Error processing PHP
javax.portlet.PortletException: javax.servlet.ServletException: 'php-ini-file' is not a recognized init-param
at com.liferay.util.bridges.php.PHPPortlet.initQuercus(PHPPortlet.java:169)
at com.liferay.util.bridges.php.PHPPortlet.processPHP(PHPPortlet.java:183)
at com.liferay.util.bridges.php.PHPPortlet.doDispatch(PHPPortlet.java:98)

i have checked phpportlet.java but i could not find the max upload size file

Thanks & Regards,
Srikanth A