You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it only writes some of the attachment data to the file, not all of it. This works on my localhost but it does not work on my server (bluehost shared hosting).
I've looked at the examples on the library's website and tried a number of other ways to write the file besides file_put_contents($filename, $part->getContent());. Such as:
Unfortunately since it's only happening on your server it sounds likely to be a server issue, and not related to my library, and I have no idea what it could be. Maybe bluehost's support or forums or something can help?
FYI, my preferred version is the last one... 'saveContent' :) the two before it are effectively the same thing (except saveContent uses psr7 streams). I wouldn't use the 'getContent' version for saving an attachment, because if it has a charset defined it will try to convert that, which can cause issues: #103
I've used the following code to parse a raw email:
But it only writes some of the attachment data to the file, not all of it. This works on my localhost but it does not work on my server (bluehost shared hosting).
I've looked at the examples on the library's website and tried a number of other ways to write the file besides
file_put_contents($filename, $part->getContent());
. Such as:and
and
But none write all of the data to a file on the server. Any help appreciated! Thanks in advance!
The text was updated successfully, but these errors were encountered: