I'm trying to upload a 1.4MB file to Roundcube but I always get the "File upload failed" message. I can upload small files without a problem. There is nothing in roundcube/logs/errors. I have the following in php.ini:
upload_max_filesize = 2M post_max_size = 8M
What could be wrong?
On 12/09/2013 01:01 PM, Grant wrote:
I'm trying to upload a 1.4MB file to Roundcube but I always get the "File upload failed" message. I can upload small files without a problem. There is nothing in roundcube/logs/errors. I have the following in php.ini:
upload_max_filesize = 2M post_max_size = 8M
What could be wrong?
Whats memory_limit?
On 2013-12-09 10:01, Grant wrote:
I'm trying to upload a 1.4MB file to Roundcube but I always get the "File upload failed" message. I can upload small files without a problem. There is nothing in roundcube/logs/errors. I have the following in php.ini:
upload_max_filesize = 2M post_max_size = 8M
What could be wrong?
- Grant
When RC (or any mail client) encodes an attachment, there is a fair amount of overhead added. Your 2MB upload limit is probably not sufficient to allow a 1.4MB attachment. Try increasing it to 4MB.
On 12/09/2013 01:12 PM, Arne Berglund wrote:
When RC (or any mail client) encodes an attachment, there is a fair amount of overhead added. Your 2MB upload limit is probably not sufficient to allow a 1.4MB attachment. Try increasing it to 4MB.
This tricks people who set *attachment* size limits, but shouldn't have much of an effect on the POST or upload sizes. I believe the only overhead is for the multipart/form-data encoding and for the HTTP headers, both of which are relatively small.
I just checked that Roundcube does upload a PDF as multipart/form-data (and not as, say, application/x-www-form-urlencoded). Maybe if this remains a mystery the OP can see what it does for his file; I used the Firefox Live HTTP Headers extension.
I'm trying to upload a 1.4MB file to Roundcube but I always get the "File upload failed" message. I can upload small files without a problem. There is nothing in roundcube/logs/errors. I have the following in php.ini:
upload_max_filesize = 2M post_max_size = 8M
What could be wrong?
Whats memory_limit?
I have:
memory_limit = 128M
I'm trying to upload a 1.4MB file to Roundcube but I always get the "File upload failed" message. I can upload small files without a problem. There is nothing in roundcube/logs/errors. I have the following in php.ini:
upload_max_filesize = 2M post_max_size = 8M
What could be wrong?
- Grant
When RC (or any mail client) encodes an attachment, there is a fair amount of overhead added. Your 2MB upload limit is probably not sufficient to allow a 1.4MB attachment. Try increasing it to 4MB.
Unfortunately I still have the issue after changing to 'upload_max_filesize = 4M'.
When RC (or any mail client) encodes an attachment, there is a fair amount of overhead added. Your 2MB upload limit is probably not sufficient to allow a 1.4MB attachment. Try increasing it to 4MB.
This tricks people who set *attachment* size limits, but shouldn't have much of an effect on the POST or upload sizes. I believe the only overhead is for the multipart/form-data encoding and for the HTTP headers, both of which are relatively small.
I just checked that Roundcube does upload a PDF as multipart/form-data (and not as, say, application/x-www-form-urlencoded). Maybe if this remains a mystery the OP can see what it does for his file; I used the Firefox Live HTTP Headers extension.
My file is actually a PDF too.
On Dec 10, 2013, at 9:11 AM, Grant emailgrant@gmail.com wrote:
I'm trying to upload a 1.4MB file to Roundcube but I always get the "File upload failed" message. I can upload small files without a problem. There is nothing in roundcube/logs/errors. I have the following in php.ini:
upload_max_filesize = 2M post_max_size = 8M
What could be wrong?
- Grant
When RC (or any mail client) encodes an attachment, there is a fair amount of overhead added. Your 2MB upload limit is probably not sufficient to allow a 1.4MB attachment. Try increasing it to 4MB.
Unfortunately I still have the issue after changing to 'upload_max_filesize = 4M'.
- Grant
Did you restart the webserver to load the change?
On 12/10/2013 12:11 PM, Grant wrote:
Unfortunately I still have the issue after changing to 'upload_max_filesize = 4M'.
Is there an .htaccess file that overrides your php.ini limit (or vice-versa)? You can run,
<?php phpinfo(); ?>
in a file (say, test.php) to see what limit is actually getting used.