|
From: Roan H. <ro...@ho...> - 2007-11-04 03:02:40
|
Victor Stone wrote: >> I successfully modified cc-getid3.php so that svgz file types will be >> recognized, and can be added to the allowed file-types to upload. > this shouldn't be necessary, if you add the type to the Pseudo > Verifier (via Global Settings) and select 'V' for 'Verify through > getID3' that should make have it pass through. The Pseudo Verifier is very cool, once I turned it on it recognized the svgz files without needing to modify the cc-getid3.php. To fix the file extension problem I needed to change the returned dataformat from svg to svgz in the getid3 svgz module. > > If getID3 is returning a 'bad' mime-type then it should be fixed there, no? The "problem" is the mime-type for both .svg and .svgz is image/svg+xml, so there is no way to tell from the mime-type whether you are getting a compressed or uncompressed svg file. > > Meanwhile looking at the psuedo verifier I see that in order to fix a > bug exactly a year ago we are setting the mime-type to null (ignoring > any possible return from getid3). That means in your case it should > work just fine lol when you switch to the psuedo verifier. Yep, works fine. Thanks for your help Victor! One thing that I confused myself with is the use of the Pseudo Verifier. I thought that after activating the svgz type in the Psuedo screen, I would have to "turn it on" in the File Type page. If you activate a file type from the Pseudo Verifier page, does that turn it on for all virtual hosts? Can virtual hosts control these types? Thanks, Roan |