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
use DataURI\Parser; $audio = Parser::parse('data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAA'); $mime = $audio->getMimeType(); echo $mime;
audio/mp3
audio/mp
The text was updated successfully, but these errors were encountered:
Totally the same for the video/mp4 case. The problem is inside the regexp pattern.
video/mp4
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Code
Expected
Output
The text was updated successfully, but these errors were encountered: