Comments (3)
Hi @renjithspace, thanks for your reply.
Do you refer the mime.types doc?
The audio/mpeg
includes following extensions:
# audio/mpa-robust
audio/mpeg mpga mp2 mp2a mp3 m2a m3a
That is, you have to use following code snippets to accomplish expected behavior:
use Mimey\MimeTypes;
$mimes = new MimeTypes();
$mimes->getExtension('audio/mpeg'); // "mp3"
from mimey.
If you want to get all extensions for audio/mpeg
, using the following method:
$mimes->getAllExtensions('audio/mpeg');
The output array is as follows:
[
"mp3",
"mpga",
"mp2",
"mp2a",
"m2a",
"m3a",
]
from mimey.
@ralouphie, do you have any idea about this :)?
from mimey.
Related Issues (13)
- question: are assertions out of scope? HOT 1
- Most common image/jpeg file extension HOT 3
- Support to image/x-ms-bmp HOT 1
- Support to application/x-gzip HOT 1
- Support php file? HOT 2
- Unexpected mime type for zip files HOT 7
- PHP8 support needed! HOT 9
- Support for image/heic
- Avif images
- Just a heads up HOT 2
- It returns mpga extension for a mp3 file
- additional mime types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimey.