22

Add New Mime Type to WordPress Multisite

In WordPress multisite there is a set of allowed file extensions that can be found at Settings>Network Settings in the “Upload File Types” field. You can add to this list but what isn’t necessarily apparent is that if the extension isn’t already part of the list here1 then you can add extensions all day and you’ll still get the security warning. To make a weird extension work . . . like .studio3 for instance you have to add the extension there and do a bit more. I tossed the following code in our network activated custom Rampages plugin. It’s just a hodgepodge of bits of code like this that I want applied across the site but that doesn’t seem like it deserves a plugin of its own. Take note that if you try to guess at the mime type and get it wrong, things won’t work. You’ll be able to select the file in the media uploader but it’ll still give you the security warning. I found this site for determining mime types. There may be other ways but it worked. 1 It is a generous list.

“Truth” through omission

The mission is “Truth” through omission. Can you get at the underlying truth of a historical document through blackout poetry? Blackout poetry has been fairly popular for a while1 but I haven’t seen any done on historical documents with the intent to get at a deeper, if fairly melodramatic, “truth”. I decided to use The Gulf of Tonkin Resolution. It makes for a pretty interesting way to interact with a dry document and requires a pretty close, and repeated, reading. I like the idea of redaction being a way to expose, rather than hide, things the government would rather not have said. The text from above . . . The United States of America in violation of the principles of the of the Charter of the United Nations and of international law, have deliberately and repeatedly attacked the Communist regime in North Vietnam the United States has territorial, military, political ambitions in that area desires the Congress approves the United States regards the Constitution its obligations reasonable assured except that it may be terminated earlier by concurring resolution of the Congress. 1 It appears Austin Kleon invented the idea in 2010 which seems crazy.