We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey,
is there already a way to get the MIME Type for attachements? Right now I use this snippet:
$content = $attachment->getDecodedContent(); $finfo = finfo_open(FILEINFO_MIME_TYPE); $tempFile = tempnam(sys_get_temp_dir(), 'attachment');
Not 100% sure if this is in any kind a security issue, if we open a wrong File to read the MIME_TYPE. So open for Tips.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey,
is there already a way to get the MIME Type for attachements? Right now I use this snippet:
Not 100% sure if this is in any kind a security issue, if we open a wrong File to read the MIME_TYPE. So open for Tips.
The text was updated successfully, but these errors were encountered: