Skip to content

Invalid image file when using Active Storage and Action Mailbox Inbound Emails #555

@estebanutz

Description

@estebanutz

Describe the bug in a sentence or two.

In my app I've setup Action Mailbox, which uses Active Storage to store the content of the inbound emails. I've integrated Cloudinary gem just fine with Active Storage with the rest of the app, but now I'm getting a "ActiveStorage::IntegrityError in Rails::Conductor::ActionMailbox::InboundEmailsController#create Invalid image file" "Exception Causes
CloudinaryException: Invalid image file" when testing inbound emails.

I can see in the active_storage_blobs table that the emails content_type as "message/rfc822". I read somewhere that Active Storage is sending the email info to Cloudinary as an image for some reason, but I could be wrong.

What am I missing? Any help would be greatly appreciated! Also, should this issue be posted in the Rails repo? Thanks!

Issue Type (Can be multiple)

Integration with Active Storage and Action Mailbox

Operating System

  • [X ] macOS

Environment and Libraries (fill in the version numbers)

  • Cloudinary Gem - 2.1.1
  • Ruby Version - 3.2.0
  • Rails Version - 7.1.3.4
  • Active Storage - 7.1.3.4
  • Action Mailbox - 7.1.3.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions