Thank you for the contribution! It's great!

Small change around line ~ 70

<?php

$file->filemime = strtolower($part->filemime);

?>

Images were not showing up automatically with the inline module. I pinned it down in the db where mime type was being saved in all caps. Changed the mime type to lower case and images are now showing.

Comments

twayz’s picture

Images sent from my phone are also not showing up automatically with the inline module. I was hoping that the above fix would help me out, but I am not sure what file you are referring to. Could you help me out please?
In the inline preferences I made sure that I checked 'display only image'. I also marked 'Display attachments inline automatically' in 'teaser view' in the content type. My mailhandler is working well. I checked the 'inline file filter' under the input formats. Also, i checked my permissions and i think i got everything there. Im not sure what is going on.

Your help is really appreciated, thanks.

nathaniel’s picture

In the file mmb.module on line ~65

<?php

  $file->filename = truncate_utf8(file_munge_filename(trim($part->filename, '.'), $extensions, FALSE), 255);
  $file->filepath = file_destination(file_create_path(file_directory_path() .'/'. $file->filename), FILE_EXISTS_RENAME); 
  $file->filemime = strtolower($part->filemime);
  $file->filesize = strlen($part->data);

?>
twayz’s picture

Thank you!!! You are a lifesaver. I've been trying to get this to work for days haha.

Thanks again!

sanduhrs’s picture

Status: Needs review » Closed (fixed)

Commited to 6-dev.
Thanks.

nathaniel’s picture

yay! :-)