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
Have a situation where JS files are being uploaded into the CMS, every JS file I try is detected as text/plain by finfo, meaning it is rejected as not a valid mimetype.
PHP says this is "not a bug": https://bugs.php.net/bug.php?id=53035 because all finfo can tell is that it's text - unless it parses the content of the file - which is much more problematic.
Question is just to figure out what we want to do here - options I see are:
a) add 'text/plain' to the default list for .js files
b) investigate better ways to detect whether a .js file is genuinely javascript
c) add a list of common odd interactions to the Readme so that people immediately find it when searching
d) add a set of extensions (or way to add a list of extensions) that are excluded from validation (if that exists already, sorry, I missed it)
Thanks!
The text was updated successfully, but these errors were encountered:
Have a situation where JS files are being uploaded into the CMS, every JS file I try is detected as
text/plain
byfinfo
, meaning it is rejected as not a valid mimetype.PHP says this is "not a bug": https://bugs.php.net/bug.php?id=53035 because all
finfo
can tell is that it's text - unless it parses the content of the file - which is much more problematic.Question is just to figure out what we want to do here - options I see are:
a) add 'text/plain' to the default list for
.js
filesb) investigate better ways to detect whether a
.js
file is genuinely javascriptc) add a list of common odd interactions to the Readme so that people immediately find it when searching
d) add a set of extensions (or way to add a list of extensions) that are excluded from validation (if that exists already, sorry, I missed it)
Thanks!
The text was updated successfully, but these errors were encountered: