Different Max File Upload Size

Hi All,

I've done a fresh install of Project Pier with a new db and everything. I'm with Surpass Hosting as my webhoster and I've done a few php upload scripts. I know that my own custom scripts on the same server/config have been able to upload at least 10mb Yet in Project Pier it's limited to 2mb.

I wrote a simple php script to check what my limits are (code below)

<?php
echo "SIZE-upload_max_filesize:";
echo
ini_get('upload_max_filesize') ;
echo
"SIZE-post_max_size:";
echo    
ini_get('post_max_size');
?>

Which gives the following output: SIZE-upload_max_filesize:60M SIZE-post_max_size:8M

I noticed that the add_file.php (application/views/files/add_file.php) doesn't have <input type="hidden" name="MAX_FILE_SIZE" value="_____" /> I've tried adding it but it doesn't seem to change anything.

I also modified add_file.php slightly to show the value of the $_FILES which says there's an error code of 1 (meaning that the file is greater than the upload_max_filesize) but how can that be when I can upload the same file on a different directory using a simple php upload script?

Any help would be appreciated!
-Dan

[Update]

I've put my test php script in the same directory as PP and it's marking it as
SIZE-upload_max_filesize: 2M SIZE-post_max_size:8M

I tested the php script in a separate directory and it goes back up to 60M. So there's something odd going on with the ProjectPier directory.

have you checked your .htaccess file on the pp directory?