Email and file : correct mimetype and fix comment in FollowUp
This commit is contained in:
parent
5d00fd3cf4
commit
26faafc00a
3 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ class FileToSend
|
|||
$this->type="application/zip";
|
||||
break;
|
||||
default:
|
||||
$this->type="application/octet";
|
||||
$this->type=" ";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue