content-type

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
rickl
Posts: 182
Joined: Thu Sep 16, 2004 4:47 am
Location: Japan

content-type

Post 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
Jon
Site Admin
Posts: 10291
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Post by Jon »

Sorry rickl, I have to pass on this. Anyone?

Jon
Sonny Software
Guest

Post 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.
rickl
Posts: 182
Joined: Thu Sep 16, 2004 4:47 am
Location: Japan

content-type

Post by rickl »

Thanks! I'll give them both a go. Note that this isn't to download files, it's to authorize uploads.

Rick
Post Reply