Email and file : correct mimetype and fix comment in FollowUp

This commit is contained in:
sparkyx 2025-09-02 22:09:06 +02:00
parent 5d00fd3cf4
commit 26faafc00a
3 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ class FileToSend
$this->type="application/zip";
break;
default:
$this->type="application/octet";
$this->type=" ";
}
}

View file

@ -211,7 +211,7 @@ eof;
$file = $this->afile[$i];
$file_size = filesize($file->full_name);
$mimetype= mime_content_type($file->full_name);
$mimetype=( $file->type=="")?mime_content_type($file->full_name):$file->type;
$handle = fopen($file->full_name, "r");
if ( $handle == false ){
\record_log("SC159 ".var_export($file,true));