You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tiddl...@googlegroups.com
I don't think this is what I want.
1. I want to link a binary file( like pdf, exe files), not just a image.
2. I think the root cause should be that whether the tiddlywiki server
can serve files from local disk.
i.e, can I get the file through `curl
http://localhost:8181/files/a.pdf` ( the 8181 port running by node )
2. I think the root cause should be that whether the tiddlywiki server
can serve files from local disk.
Of course, that node.js server can.
Ok, let me rephrase that: Are you trying to generate a static site?
Also, try [ext[./a.pdf]]for files in the same directory.
Otherwise, use subdirectories, which sounds advisable anyway.
Best wishes, Tobias.
Tobias Beer
unread,
Jan 8, 2015, 3:51:00 AM1/8/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tiddl...@googlegroups.com
Sorry, decided to go into "breakfast-mode" first.
You're all asking about node.js and I hand you dropbox.^^
Best wishes, Tobias.
Lei Zhang
unread,
Jan 8, 2015, 3:56:20 AM1/8/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tiddl...@googlegroups.com
On Thu, Jan 8, 2015 at 4:51 PM, Tobias Beer <beert...@gmail.com> wrote:
> You're all asking about node.js and I hand you dropbox. ^^
yup.
This is the misunderstand between us.
In dropbox or static html file case, your solution works as expected.
But in nodejs case, the tiddlywiki server doesn't serve the local
file. I still expect that the tiddlywiki server can do.
BJ
unread,
Jan 9, 2015, 8:20:00 AM1/9/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tiddl...@googlegroups.com
Hi 张雷, with a relative path the browser is going to use the location of the webpage as the starting point for relative url so it appends a.pdf to http://localhost:8181 - to form http://localhost:8181/a.pdf. which means that when you click the link to send a 'get' to the tiddlywiki-node processes (at http://localhost:8181), but tiddlywiki on nodejs is not a webserver so this fails.