Roundcube Community Forum
SVN Releases => Issues & Bugs => Topic started by: Webalistic on May 12, 2008, 11:21:56 AM
-
Hiyall,
I'm posting this here because it appears thought the forums in different guises. Like lots of other members I've been thought the gamut of changes posted with little or no success.
Roundcube needs to be able to reliably send attachments bigger than 2MB if it is to be a success.
This is a truly excellent project, but this is a major issue that needs addressing fast before power users move on to something else.
Please, please can someone more talented than me fix this problem!
-
I second this motion.
-
Hey, let's bump this one guys
-
If you have the problem, that the size of the attachments are all only 8K, I think here is a small solution.
change the file: ../program/lib/Mail/mime.php
change this line: $cont = fread($fd, $filesize);
to: while ($info = fread($fd,8192)) {
$cont .= $info;
}
it seams that this is the size of the apache buffer that makes the problem.
have a nice day
-
RC has a problem with attachments indeed. I am seconding this, please allow to set on configuration the size of attachments.
-
If you have the problem, that the size of the attachments are all only 8K, I think here is a small solution.
change the file: ../program/lib/Mail/mime.php
change this line: $cont = fread($fd, $filesize);
to: while ($info = fread($fd,8192)) {
$cont .= $info;
}
it seams that this is the size of the apache buffer that makes the problem.
have a nice day
Big Thx, CarstenS!
I had exactly this issue and your solution does fix it! :D
Now I still have to fix the problem with >2MB limit.
Let's hope that RC coders will fix all problems with attachments (as I go through the threads many ppl have problems with it) in future release.
For me RC is the best webmail solution and I would be sad to exchange it because of that attachment problems.
-
Big Thx, CarstenS!
Now I still have to fix the problem with >2MB limit.
Look at upload_max_filesize and post_max_size properties on php.ini file.
-
Look at upload_max_filesize and post_max_size properties on php.ini file.
With all respect to all the incredibly helpful forum members, the real issue is that RC has a bug when handling attachments that makes large files impossible to send. Dealing with the php.ini file (and .htaccess) will not solve that problem. It does, however, help users to eliminate this from their fault finding.
What we really need is a fix for the real problem.
-
Hello guys, I found the solution.
Except
upload_max_filesize and post_max_size
you need to set a memory_limit to something much higher than what you have in your roundcube .htaccess file:
<IfModule mod_php5.c>
php_flag display_errors Off
php_flag log_errors On
php_value error_log logs/errors
php_value upload_max_filesize 30M
php_value post_max_size 30M
php_value memory_limit 256M
php_value session.auto_start 0
php_value zlib.output_compression 0
php_value magic_quotes_gpc 0
php_value zend.ze1_compatibility_mode 0
</IfModule>
After applying these changes I was able to attach files and send email >25 megs in size.
-
Good for you. I still have issues with RoundCube while other software has not. It seems to be unable (at least most of the time) to process larger Attachments. In example I try to upload a file with exactly 11434567 bytes - sometimes it uploads all the bytes sometimes it forgets only a couple of bytes and just closes the attachment window without doing anything (btw. you can always check "failed" uploads in your upload temp directory specified in you php.ini file).
I've set all the appropiate settings in the PHP.ini file and sometimes it works - however not reliable so it most of the times rather useless.
This is with Windows Server 2008 - I do not get these kind of errors when using other scripts like galleries and stuff.