[Building Sakai] Firefox on Mac and PDF uploads

Branden branden at uwindsor.ca
Fri Oct 30 13:06:55 PDT 2009


Thanks John. I thought this could have been the problem, but sources say that
re-installing Firefox will refresh the rdf file. We re-installed, but no
luck :(

In the meantime, I've added 'binary/octet-stream=' to my
content_type_extensions.properties file, so now if users are bitten in this
way, they are able to manually change the content type in resources.

Branden


John Ansorge wrote:
> 
> Hi Branden,
> I think your user has been struck by mimeTypes.rdf "corruption" (it's not
> true corruption, it's just wrong information in a config file).
> 
> This web page
> (http://cephas.net/blog/2007/01/05/firefox-mimetypesrdf-corruption/)
> explains it better than I could:
> 
> 
> http://cephas.net/blog/2007/01/05/firefox-mimetypesrdf-corruption/ wrote:
>> 
>> Firefox mimeTypes.rdf corruption
>> 
>> Came across another interesting bug today involving Firefox and mime
>> types. Firefox uses a file called mimeTypes.rdf (stored in your profile
>> folder) to keep track of a) what application should be opening the file
>> you’re downloading and b) what kind of file it should tell a server it’s
>> sending when you upload a file. And it works … for the most part. See, if
>> you download a PDF file from a server that (incorrectly) states that the
>> content-type of the file is ‘application/unknown’, choose to open it
>> using Adobe Acrobat and then check the box that says ‘Do this
>> automatically from now on’, Firefox will store that bit of knowledge away
>> in mimeTypes.rdf. Now go and use a web application that you upload files
>> to and which analyzes the content-type of the files you’re uploading and
>> upload a PDF file. If you’re using LiveHTTPHeaders, you’ll notice that
>> you’re not sending ‘application/pdf’ but instead
>> ‘application/x-download’.
>> 
>> It looks like this bug was filed in bugzilla a couple times and even
>> acknowledged in their documentation, but has yet to be fixed. You can
>> ‘fix’ the problem by deleting your mimeTypes.rdf file and restarting
>> Firefox.
>> 
> 
> 
> 
> Branden wrote:
>> 
>> Hi all,
>> 
>> We have a user using Firefox 3.5.4 on Mac, whose PDF uploads are being 
>> sent to Sakai as binary/octet-stream . Does anyone know of a browser 
>> work-around to fix this? We tried re-installing but it did not solve the 
>> issue.
>> 
>> Also, since the type is 'binary/octet-stream', the "Change File Type" 
>> button causes a JS error, and I think its because 'binary' doesn't exist 
>> in the left-side dropdown.
>> 
>> Thanks,
>> Branden
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>> 
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/-Building-Sakai--Firefox-on-Mac-and-PDF-uploads-tp26117246p26136195.html
Sent from the Sakai - Development mailing list archive at Nabble.com.



More information about the sakai-dev mailing list