List, Good morning. I''m completely new to Instiki, and to Textile - a few hours into it, only. I''m working on a WinXP PS-2 machine, with the very latest stabile version of Instiki. I cannot discover how to link to my file system. I write this with Textile (guessing a bit about the markup because I cannot find a reference to guide me)... "05285 Some Ways to Prepare for the Absolute Worst":file://"C:/ Documents%20and%20Settings/TC/hold2.txt" or "05285 Some Ways to Prepare for the Absolute Worst":file:// C:\Documents%20and%20Settings\TC\hold2.txt or any other permutation you can think of, of forward and back slashes, with file pathname quoted or not. It doesn''t matter. They all produce a nice enough link, but a dead one. What''s the secret? Or am I trying to do the impossible? Thanks in advance for any help you can offer. -- t. -- =====================================================Tom Cloyd, MS MA, LMHC Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << BestMindHealth.com / tc@bestmindhealth.com >> ===================================================== Using Opera''s revolutionary e-mail client (program): http://www.opera.com/mail/
Hi Tom,> Good morning. I''m completely new to Instiki, and to Textile - a few hours > into it, only.Welcome!> I cannot discover how to link to my file system.That''s a feature - you don''t want others to insert a link on the wiki to some random file on your system and then downloading it. If you want to distribute a file, just place it under Instiki''s /public directory, and make a link to: "Download":/file_name.ext I.e. the link name in quotes, colon a single forward slash and the file name. I know Alexey has been working on file uploads/downloads, but have no idea how that is going. HTH, Assaph
Assaph, Thank you for your response. I was beginning to wonder if I was the only one here. In light of the low volume on this list, is there some reason why you didn''t reply on-list? I''m going to reply that way just because I believe this is a basic question - and your answer is interesting. On Mon, 12 Sep 2005 01:26:29 -0700, Assaph Mehr <assaph@gmail.com> wrote: [...]>> I cannot discover how to link to my file system.> That''s a feature - you don''t want others to insert a link on the wiki > to some random file on your system and then downloading it.This isn''t always a problem - the wiki I''m working with is a personal one on my desktop. There are no other users. Beyond that, if it were on my server, how could someone link to a file on my file system unless they know it''s there? How could they know what I have unless I tell them? And if it IS possible for them to know this, they can surely get to it by means other than a link a public wiki! So...I''m not at all understanding how this could be a "feature". Am I misunderstanding something?> If you > want to distribute a file, just place it under Instiki''s /public > directory, and make a link to: > "Download":/file_name.ext > I.e. the link name in quotes, colon a single forward slash and the file > name. > I know Alexey has been working on file uploads/downloads, but have no > idea how that is going.OK, I''ll make a note about that, relative to setting up downloads. However, having to physically MOVE a file, rather than a pointer (link) is a bad solution. That file may be in use for other functions as well. So now I have to have TWO copies? Not good. Shouldn''t even be necessary. Maybe I''m really missing something. Are you saying that I cannot simply set up a link from a wiki page to file on my server, sitting in a folder on my own domain? That can''t be. It''s also not the problem I''m trying to solve. But...What I want to do is to have material in a directory on my desktop box, and link to it from my personal wiki. This should be possible using the "file://c:\...." format. But that doesn''t work. I hope this time my question is clearer. ">HTH," << What does that mean? Just curious... Thanks for your help, Tom -- =====================================================Tom Cloyd, MS MA, LMHC Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << BestMindHealth.com / tc@bestmindhealth.com >> ===================================================== Using Opera''s revolutionary e-mail client (program): http://www.opera.com/mail/
Hi Tom,> Thank you for your response. I was beginning to wonder if I was the only > one here. In light of the low volume on this list, is there some reason > why you didn''t reply on-list? I''m going to reply that way just because I > believe this is a basic question - and your answer is interesting.Was sure I did :-)> >> I cannot discover how to link to my file system. > > > That''s a feature - you don''t want others to insert a link on the wiki > > to some random file on your system and then downloading it. > > This isn''t always a problem - the wiki I''m working with is a personal one > on my desktop. There are no other users.Browsers & servers don''t know that. This is not a feature specific to Instiki, but rather a matter common to all servers - don''t serve random files unless instructed.> Beyond that, if it were on my server, how could someone link to a file on > my file system unless they know it''s there? How could they know what I > have unless I tell them?Take a good guess. You''re on Windows, your name''s Tom - let''s try permutations of user names and the standard win home path. If you''re not careful we could get directory listing, system files etc.> And if it IS possible for them to know this, they > can surely get to it by means other than a link a public wiki!Yes, but servers/browsers shouldn''t make it easy. The fact that other ways exist to hack your machine doesn''t mean you should have more :-)> So...I''m > not at all understanding how this could be a "feature". Am I > misunderstanding something?I hope the above explained it. Again, this is not something unique to Instiki/WEBrick. This is a generic rule, preventing others from random access to your machine.> OK, I''ll make a note about that, relative to setting up downloads. > However, having to physically MOVE a file, rather than a pointer (link) is > a bad solution. That file may be in use for other functions as well. So > now I have to have TWO copies? Not good. Shouldn''t even be necessary.I think (but not sure - will test), that because of the way Windows handle file links, if you plant a link in the /public folder all you will be served is the .lnk file, instead of the actual file. There might be a way to tell WEBrick to serve things not under the document-root, but am not sure if there is.> Maybe I''m really missing something. Are you saying that I cannot simply > set up a link from a wiki page to file on my server, sitting in a folder > on my own domain? That can''t be. > > It''s also not the problem I''m trying to solve. But...What I want to do is > to have material in a directory on my desktop box, and link to it from my > personal wiki. This should be possible using the "file://c:\...." format. > But that doesn''t work.Let''s put it this way: how will the server differentiate betwen you writing: "Good File":file//c:/myproject/goodfile.txt and me editing a page on your wiki and linking: "Serve Me":file://c:/windows/system32/config/sam ? For your problem, there might be a way to tell Instiki/WEBrick to serve files from specific directories, but that would require some Instiki hacking and testing. Cheers, Assaph> ">HTH," << What does that mean? Just curious...HTH = Hope This Helps.