From: Lyndon Samson Date: 2005-08-26T10:33:50+09:00 Subject: Re: instiki question ------=_Part_4412_26611503.1125020026858 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Write a simple webbrick servlet that converts http style requests to=20 network. Ie http://myserver:myport/servefile?id=3D/a/b/c.pdf code def servefile(req, res) fileName =3D "#{req.query['id']}" fullFileName =3D "#{baseDir}/#{fileName}" data =3D nil File.open(fullFileName,"rb") { |f| data=3Df.read() } res['Content-Type'] =3D "application/octet-stream" res['Content-Disposition'] =3D "attachment; filename=3D\"#{fileNname}\";"= =20 res.body =3D data end On 8/26/05, Joe Van Dyk wrote: >=20 > On 3/29/05, Assaph Mehr wrote: > > > > Joe Van Dyk wrote: > > > On Tue, 29 Mar 2005 16:23:01 -0800, Joe Van Dyk > > wrote: > > > > I've got a document on a network drive that I want to share on our > > > > internal wiki. How can I link to that document? > > > > > > > > The document is at something like \\shared_drive\directory\another > > > > directory\note the spaces in the directory\my_document.doc > > > > > > > > > > I've tried "link name":\\shared_drive\directory\another > > directory\note > > > the spaces in the directory\my_document.doc > > > > > > But that fails miserably as you could probably guess. > > > > It's a textile issue, not Instiki. As far I know you can't do it this > > way in textile, but you can fall back on HTML: > > > spaces in the directory/my_document.doc">link name > > > > This will work via MSIE but not with Firefox (which is a point in > > favour of firefox, it not being a great gaping hole into your > > network). > > > > HTH, > > Assaph >=20 > That's too bad about Firefox actually... it would be nice to be able > to create links to shared drives in our web pages. >=20 >=20 --=20 Into RFID? www.rfidnewsupdate.com Simple,= =20 fast, news. ------=_Part_4412_26611503.1125020026858--