Page 1 of 1

content-type

Posted: Thu Mar 17, 2005 7:47 pm
by rickl
I have a wiki where I intend for people to share bibliographical data, but the types of data allowed by default are for security reasons fairly restrictive.
What I do is export references from Bookends as a .bib file, and then upload the file to the wiki. To allow users to do the same thing, I have to add a line to a configuration file, like this:
$UploadExts['ext'] = 'content-type';
Clearly "bib" should go in the ext bit. Do you have any idea what should go in the content-type bit?
Sorry if this is a bit outside the usual scope of the forum.
Thanks,
Rick

Posted: Thu Mar 17, 2005 8:24 pm
by Jon
Sorry rickl, I have to pass on this. Anyone?

Jon
Sonny Software

Posted: Mon Mar 21, 2005 2:47 pm
by Guest
If the .bib file is NOT a text file, try "application/x-bookends". This should force the browser to download the file since it shouldn't know (by default) what to do with it. You can always then teach it to open Bookends instead of saving. If the .bib file is a text file, then you can use "text/x-bookends" although some browsers will just display that in their window.

content-type

Posted: Mon Mar 21, 2005 10:32 pm
by rickl
Thanks! I'll give them both a go. Note that this isn't to download files, it's to authorize uploads.

Rick