Comments (7)
@ralouphie, thanks for your reply.
According to the httpd mime type doc, it seems that this zip is different mime types.
They're as follows:
application/zip zip
# application/gzip
Do you mean the # application/gzip
is customized mapping?
If yes, and I think you're right. And this issue will be closed :).
from mimey.
That's a good catch I think and it should be fixed :).
The zip
and gzip
are different MIME types.
from mimey.
@ralouphie, do you have any idea about this :)?
from mimey.
This repository is meant to be a wrapper for httpd's mime types mapping. If a different mapping is needed, please leverage the custom mappings capability described in the documentation.
from mimey.
Hi @ralouphie
According to the httpd mime doc @peter279k mentioned, mime type for zip
extension should be application/zip
zip files are widespread and are important part of web services, so I see it as important to resolve.
Would you let us know what's needed to help progress resolution of this issue, a PR? :)
from mimey.
It seems that the repository owner doesn't concern this PR for about whiles.
And I think it should add some collaborator on this repository.
from mimey.
Ran into this issue also as the method forces the value at ZERO pointer.
https://github.com/ralouphie/mimey/blob/develop/src/MimeTypes.php#L52
The non-standard x-gzip
should arguably be at the end of this array or advised use of getAllMimeTypes
in all cases.
https://github.com/ralouphie/mimey/blob/develop/mime.types.php#L32
'zip' =>
array (
0 => 'application/x-gzip',
1 => 'application/zip',
),
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
- Audio/mp3 not working, returning null HOT 3
- 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.