For months now I've not been able to attach files to messages, I was getting the error "Could not move/copy file. File not attached". fter a bit of poking about I found the following code is causing the problem:
$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 '<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="'.min( $sizes ).'">'; My setup has a 'memory_limit' setting of -1 which I believe is legitimate and represents inifnity i.e. no memory limit. In the above code this results in a MAX_FILE_SIZE of -1 which prevents any files being uploaded. Is this a bug? It seems like it to me. Cheers, Geoff ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click -- 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