Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Postie just uses WordPress methods for adding media. You should be able to find it in your uploads directory.

    Thread Starter rcain8

    (@rcain8)

    That’s what I thought too Wayne. But I can’t seem to find them anywhere in my CPANEL. It’s been driving me crazy all day!

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Are they showing up in your posts, but you can’t find them on disk?

    Thread Starter rcain8

    (@rcain8)

    Yes. They show up perfectly on my posts (Thank you!), but I am trying to scrape my site for some info daily to put on another platform.
    So I am trying to figure out where the data (including attachment pictures) from my posts are located on my server.
    I have had 3 guys working on it with me today and none of us can find where the post data is on the server. Thought maybe you could help cause god knows I have tried everything else!
    Thanks! –Reid

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thread Starter rcain8

    (@rcain8)

    Unfortunately, it doesn’t. For some reason they are not showing up in the dated folder you would think they would.

    https://prntscr.com/oe5fk
    And directory is empty even though I published 30+ posts today all with attachment pictures.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I’d look at the URLs being generated for the images and look at your web server config to see where those URLs are being served from.

    Does Postie only handle certain types of attachments? I would like to be able to upload an .ics file as an attachment to an email. JPGs and PDFs work fine.

    I tried adding various filetypes (mime types?) in the Advanced Settings:
    text/calendar
    calendar
    text
    plaincharset
    text/plaincharset
    .ics
    ics
    But none of those seem to have an effect. Do I have to add something else to WordPress to allow it to receive .ics files as uploads? I recall having to do something like this for VCF files just when uploading them, like this person suggests:
    https://nhaskins.com/post/allow-more-filetypes-in-wordpress-upload/

    But I was hoping it would just be a setting within Postie.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Postie uses the first part of the mime type when checking for “supported file types”. Wikipedia says they are text/calendar which is a problem as Postie currently deletes all text mime parts that aren’t plain or html.

    I’ll look into how to fix this.

    Thread Starter rcain8

    (@rcain8)

    Hey Wayne… Is there a way to attach a .MOV file along with the jpeg files?
    For some reason I haven’t been able to figure this one out without using youtube.
    Thanks for your help and I am looking forward to logo #2 being put into place. (hint hint!)

    Hi Wayne,
    Thanks! I had a suspicion about that, but it’s beyond my ken.
    A group of lines around line 1595 were commented out in the code, so I un-commented and that didn’t help.
    I was wondering if the “multipart” could be changed to “calendar” — but I don’t think there is necessarily anyway for the mail program sending the file to know that the .ics is text/calendar, unless the mail server is that clever so as to know about it.

    I was thinking that maybe there would be something like the reverse of the “rejected file types” setting, where you could indicate preferred file types. Could there be a pass through the message again, after the first pass where we ignore the text mime parts, and we look for the attachments whose file names have preferred extensions.?

    Here’s the lines around 1595 of postie-functions.php:

    //        if (in_array($mimeDecodedEmail->parts[$i]->ctype_primary, array("text", "multipart"))) {
    //            if (SearchForMIMEType($mimeDecodedEmail->parts[$i], "text", $preferTextType)) {
    //                $newParts[] = $mimeDecodedEmail->parts[$i];
    //                $found = true;
    //                DebugEcho("found");
    //            }
    //        } else {
    //            $newParts[] = $mimeDecodedEmail->parts[$i];
    //        }

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I’m pretty sure I need to make Postie smarter about different types of “text” mime parts. Right now it only cares about plan and html, everything else gets deleted.

    Please let me know if I can help with testing! I wish I could do something with the code to help! I tried a number of different things and at one point ended up with 8 attachments, none of which were the .ics, and multiple copies of the email (in HTML and not)…

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for the offer. I’ll keep you informed.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    OK, 1.4.24 should support an attached .ics file.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can't find Postie attachments’ is closed to new replies.