You are not logged in.
Pages: 1
Hello,
I just upgraded to bigtree 4.4.11 locally and tried to upload an svg file through Files > Add Files. It it seems to hang once I select the svg file.
I tried adding different variations of the below code to .htaccess and httpd.conf(Mamp) but still same issue.
Tried without the periods before svg and svgz.
Tried without AddEnco... line
AddType image/svg+xml .svg .svgz
AddEncoding gzip svgz
Any suggestions to why its not working?
Offline
I think I found the issue and it is possibly a bug. I was getting the error below.
(index):145 Uncaught TypeError: Cannot read property 'indexOf' of undefined
It was referring to core/admin/modules/files/add/file.php, line 42 which checks if it is a svg.
Instead of
} else if (file.type.indexOf("image") !== -1 && this.type.indexOf("svg") === -1) {
it should be
} else if (file.type.indexOf("image") !== -1 && file.type.indexOf("svg") === -1) {
Once I changed it from "this" to "file", I was able to upload an svg file.
Offline
Saw on github you had already fixed the issue.
Offline
Sorry for the delay in responding here -- hopefully we'll get out a 4.4.12 release with that fix in soon!
Offline
Pages: 1