Author Topic: Attachments limited to 10k but otherwise OK  (Read 3715 times)

Offline Z80A

  • Newbie
  • *
  • Posts: 1
Attachments limited to 10k but otherwise OK
« on: April 28, 2008, 10:53:59 AM »
Hi everybody,
when I attach files to an email, they are cut after approx. 10k. Which means: smaller attachments are OK, but bigger ones are corrupted. For example, if I send a png file over 10k than I can see that it is cut off at the bottom.
Thus the sending of attachments as such seems to work. It's only the size which matters. Also, when I use Squirrelmail, I have no problems with bigger attachments. I can send them with squirrelmail and receive them w/o problems with Roundcube. If I forward such an email further in Roundcube, the attachments are cut off after this limit, though. So I *think* this might be a Roundcube isue.
I am using Apache 2.0.5 so I had to remove the settings from the main .htaccess file and put it into my directory part of the virtual host file since I get the error "/usr/share/roundcube/trunk/roundcubemail/.htaccess: AddType not allowed here" otherwise.
/etc/apache2/sites-available/default. These are my settings:

Code: [Select]
       Alias /webmail "/usr/share/roundcube/trunk/roundcubemail"
        <Directory &quot;/usr/share/roundcube/trunk/roundcubemail&quot;>
            AllowOverride Limit
            Options Indexes FollowSymLinks
            AddType text/x-component .htc
            <IfModule mod_php4.c>
                php_flag      display_errors  Off
                php_flag      log_errors      On
                php_value     error_log       logs/errors
                php_value     upload_max_filesize     5M
                php_value     post_max_size   6M
                php_value     memory_limit    64M
                php_value     session.auto_start      0
                php_value     zlib.output_compression 0
                php_value     magic_quotes_gpc        0
            </IfModule>
            <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     5M
                php_value     post_max_size   6M
                php_value     memory_limit    64M
                php_value     session.auto_start      0
                php_value     zlib.output_compression 0
                php_value     magic_quotes_gpc        0
            </IfModule>
            <IfModule mod_dir.c>
                DirectoryIndex index.php
            </IfModule>
        </Directory>

I didn't find any other place, where the limit might have been set. But then, I have no understanding of PHP.
I also tried the newest trunk release(as you can see from the code above) but also without any success. The logs/errors file contains no error information.
I use Dovecot as IMAP and Postfix as SMTP servers.
Regards
« Last Edit: April 28, 2008, 10:56:30 AM by Z80A »

Offline dbucher

  • Jr. Member
  • **
  • Posts: 15
Attachements corrupted
« Reply #1 on: November 10, 2008, 11:52:20 AM »
Hello,

Yes, attachments are broken in the stable release, look at :

http://www.roundcubeforum.net/release-discussion/3381-serious-problem-attachements-being-broken.html

Denis