adam
10-12-2009, 07:25 PM
Hi,
I am trying to raise the max file size for a php upload. I have tried a number of things, but still have the default 100,000 showing in the phpinfo(). I am using tomcat 6.0 Here is my latest attempt in my web.xml. Any ideas?
<servlet-mapping>
<servlet-name>com.caucho.quercus.servlet.QuercusServlet</servlet-name>
<url-pattern>*.php</url-pattern>
<init>
<php-ini>
<upload_max_filesize>2M</upload_max_filesize>
</php-ini>
</init>
</servlet-mapping>
And here is some of phpinfo()...
Quercus
PHP Version => 5.2.0
System => Linux 2.6.24-24-generic i386
Build Date => 20070628T2777
Configure Command => n/a
Server API => CGI
Virtual Directory Support => disabled
Configuration File (php.ini) Path => WEB-INF/php.ini
PHP API => 20031224
PHP Extension => 20041030
Debug Build => no
Thread Safety => enabled
Registered PHP Streams => php, file, http, https
PHP Variables
Variable Value
_REQUEST["dir"] 20
_REQUEST["MAX_FILE_SIZE"] 100000
_REQUEST["name"] adam
_REQUEST["JSESSIONID"] F760C33DADE3A2726EDEE38AF3EDC031
_GET["dir"] 20
_POST["MAX_FILE_SIZE"] 100000
_SERVER["SHLVL"] 1
I am trying to raise the max file size for a php upload. I have tried a number of things, but still have the default 100,000 showing in the phpinfo(). I am using tomcat 6.0 Here is my latest attempt in my web.xml. Any ideas?
<servlet-mapping>
<servlet-name>com.caucho.quercus.servlet.QuercusServlet</servlet-name>
<url-pattern>*.php</url-pattern>
<init>
<php-ini>
<upload_max_filesize>2M</upload_max_filesize>
</php-ini>
</init>
</servlet-mapping>
And here is some of phpinfo()...
Quercus
PHP Version => 5.2.0
System => Linux 2.6.24-24-generic i386
Build Date => 20070628T2777
Configure Command => n/a
Server API => CGI
Virtual Directory Support => disabled
Configuration File (php.ini) Path => WEB-INF/php.ini
PHP API => 20031224
PHP Extension => 20041030
Debug Build => no
Thread Safety => enabled
Registered PHP Streams => php, file, http, https
PHP Variables
Variable Value
_REQUEST["dir"] 20
_REQUEST["MAX_FILE_SIZE"] 100000
_REQUEST["name"] adam
_REQUEST["JSESSIONID"] F760C33DADE3A2726EDEE38AF3EDC031
_GET["dir"] 20
_POST["MAX_FILE_SIZE"] 100000
_SERVER["SHLVL"] 1