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
content-type
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
Thanks! I'll give them both a go. Note that this isn't to download files, it's to authorize uploads.
Rick
Rick