GNOME Bugzilla – Bug 495258
User uploaded files served as text/plain ("CSS doesn't work")
Last modified: 2007-11-11 03:56:04 UTC
As of the upgrade to WordPress MU 1.3, user uploaded files are dynamically served with the content-type "text/plain", which most visibly manifests in CSS not working in sane browsers like Firefox.
HEAD /files/custom.css HTTP/1.0 Host: blogs.gnome.org HTTP/1.1 200 OK Date: Fri, 09 Nov 2007 11:30:12 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.1.6 Content-Length: 442 Last-Modified: Thu, 08 Nov 2007 08:56:41 GMT ETag: "4135eb983d80d1fee7d7f3788a0f1354" Expires: Sun, 09 Jan 2011 21:16:56 GMT Connection: close Content-Type: text/plain; charset=UTF-8
HEAD /files/2007/06/pb2wp-done.png HTTP/1.0 Host: blogs.gnome.org HTTP/1.1 200 OK Date: Fri, 09 Nov 2007 11:31:32 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.1.6 Content-Length: 15032 Last-Modified: Mon, 11 Jun 2007 16:39:21 GMT ETag: "a4eaab92b1f7d28a9805d4d72c8284bd" Expires: Sun, 09 Jan 2011 21:18:15 GMT Connection: close Content-Type: text/plain; charset=UTF-8
Filed upstream: http://trac.mu.wordpress.org/ticket/496
This happened as a result of a recent change in WPMU, which added mime_content_type to the methods of determining the content-type for uploaded files. I've mentioned this in the upstream bug and commented it out locally for now (specifically so that we'll get a conflict when merging next time).