Well Robert Thiem had the right answer. Here is what he said: Had a similar problem on my site (RH9) when a friend was uploading a large image (1.4Mb) so upgraded to 1.4.4 with no joy.
Turns out that it was a problem with the default value for "LimitBodySize" in /etc/httpd/conf.d/php.conf (512Kb, from memory) There are also limits set in /etc/php.ini (upload_max_filesize) - so best to check both.
If this ends up being the problem could you post it to the mailing list - I'm not a member. -----
And sure enough that was the problem. I never thought of looking there. I will post this on the mailing list.
Barton L. Phillips wrote:
I found this in my html error_log:
[Tue Jan 25 09:47:41 2005] [error] [client 68.122.243.210] Requested content-length of 2051263 is larger than the configured limit of 524288, referer: http://www.applitec.com/applitecmail/src/compose.php?mailbox=INBOX&startMessage=1
And when I try an mpeg of 300K it works okay. But where is the limit of 512k set? I looked in my /etc/php.ini and /etc/httpd/conf/httpd.conf and can't find any limit like that. Nor did I find anything in SM config.php.
I looked at the SM source and in the src/compose.php and found this code:
$configvars = array('post_max_size', 'memory_limit', 'upload_max_filesize');
foreach($configvars as $var) {
/* skip 0 or empty values */
if( $size = getByteSize(ini_get($var)) ) {
$sizes[] = $size;
}
}
if(count($sizes) > 0) {
$maxsize = '(max. ' . show_readable_size( min( $sizes ) ) . ')';
} else {
$maxsize = '';
}
echo addHidden('MAX_FILE_SIZE', min( $sizes ));
---end_src
My php.ini has: post_max_size = 100M memory_limit = 100M upload_max_filesize = 100M
And here is the code that SM generates for the page:
<input type="hidden" name="MAX_FILE_SIZE" value="104857600" />
<tr>
<td colspan="2">
<table width="100%" cellpadding="1" cellspacing="0" align="center" border="0" bgcolor="#ABABAB">
<tr>
<td>
<table width="100%" cellpadding="3" cellspacing="0" align="center" border="0">
<tr>
<td align="right" valign="middle">Attach:</td>
<td align="left" valign="middle"> <input name="attachfile" size="48" type="file" />
<input type="submit" name="attach" value="Add">
(max. 100<small> M</small>) </td>
</tr>
---end_src
So it looks like 100 Meg should be the file size limit but any mpeg greater than 512K seems to cause the problem.
A little more info: I tried a big file "/home/barton/download/MPlayer-1.0pre4.tar.bz2" which is 4,916,624 bytes and got the same error and log info:
[Tue Jan 25 11:40:55 2005] [error] [client 68.122.243.210] Requested content-length of 4916624 is larger than the configured limit of 524288, referer: http://www.applitec.com/applitecmail/src/compose.php?mailbox=INBOX&startMessage=1
So it seems that probably any file bigger than 512K will cause the same error. As it happens most file are not that big unless they are mpegs or big compressed source stuff. I don't think that it is SM that is producing the error message.
It seems to have the same problem with any browser. My client found the problem originally and he was using IE from another location over the Internet so I think it must be a server issue.
I'll keep looking for some limit on my server but so far I can't find one.
Mike Oliveri wrote:
Hmm. I just did a quick test on my side thinking it might be permissions of the file itself, but that doesn't appear to be the case, either. I tried with an mpg and a mov and couldn't reproduce the problem.
All I can figure is possibly a php.ini configuration problem or a SM configuration problem, but unfortunately I'm not sure where the problem could be. :( I'm not a programmer.
Is it only happening with Firefox? Have you tried IE on Windows or Konqueror, etc., on Linux/Unix? Are you seeing anything in the log files? I would check both your system logs and your Apache logs, particularly httpd-error.
Mike
On Fri, 21 Jan 2005 17:04:21 -0800, Barton L. Phillips
<[EMAIL PROTECTED]> wrote:
I can copy the an mpeg to my web server (www.bartonphillips.com) and
apache serves it up okay to Firefox and displays it (I have plugger set
up to use mplayer). I can open an mpeg via the File Open and it displays
okay.
But SM displays an Alert box and says the file contains no data when I
click the Add button. I have no problem downloading mpegs or clicking on
them and having the browser (Firefox) play them. And as I said, I can
both play and download them via my web site via my apache server, so I
don't think it is an apache or browser problem.
Note I first noticed this when a client told me he couldn't use my SM
and attach an mpeg. I was using and older version of SM so I upgraded to
the latest version (this was a month ago) which was 1.4.3a at the time.
Both the old and new version responded the same way.
Mike Oliveri wrote:
I asked this a while back but got no replys:
When I try to send an email with an mpeg attachment SM says that the
document has no data. The mpeg does have data and is a standard mpeg
that I can view with mplayer on Linux and with MS Windows players.
Does anyone else have this problem? I am running on RedHat 9 with a
current version of SM.
any logs giving any hints?
And more hints about exactly what versions of what are being used it also
helpful.
Could this be an issue of the webserver not reporting the MIME type to the browser? Is it only happening when you click the mpeg, say to play it? Are you able to download as a file and play it from the recipient's hard disk?
Take care, Mike Oliveri [EMAIL PROTECTED]
-- ---------------- Barton L. Phillips Applied Technology Resources, Inc. Tel: (818)652-9850 Web: http://www.applitec.com
-- ---------------- Barton L. Phillips Applied Technology Resources, Inc. Tel: (818)652-9850 Web: http://www.applitec.com
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
