I have resin-3.1.2 installed, and I can't upload file which size>2M. When the
file size <2M, it's OK. When file size>2M, It says my upload file size is 0.
I already changed the max upload file size=5M in php.ini file, but it
doesn't work. 
Can any body tell me how to do this? Your help will be highly appreciated.
My sample code is as below:
<?php
        ini_set('max_execution_time',100000000);
        ini_set('max_input_time',100000000);
        ini_set('memory_limit',400388608);  
        ini_set('post_max_size',400388608);  
        ini_set('upload_max_filesize',400388608); 

if ($_GET['submit'] == 'true'){
        $fileSize = $_FILES['userfile']['size'];
        echo $_FILES['userfile']['name']." size is ".$fileSize;
}
?>
<html>
<body>
<form enctype="multipart/form-data" method="post" name="HEAttachFiles"
action="tutest.php?submit=true">

<table>
<tr>
                        <td>File  <input name="userfile" type="file" 
id="userfile"
size="30"></td>
                </tr>
       <tr>
                        <td align="center">
                                <input name="upload" type="submit" class="box" 
id="upload" value="
Attach " style="width:60" >
                        </td>
                </tr>
</table>
</form>
</body>
</html>

-- 
View this message in context: 
http://www.nabble.com/how-to-increase-file-upload-size-tp15078070p15078070.html
Sent from the Resin mailing list archive at Nabble.com.



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to