Fetch the name of external file by browsing or drag-drop method to a input field?

45 views
Skip to first unread message

Gordan Nia

unread,
May 5, 2017, 10:19:03 AM5/5/17
to TiddlyWiki
I want to get the file name (without extension) by file browsing and create new tiddler with the fetched name. I fight but I don't have enough knowledge... I'm stuck with a code:

Select file:
<input type="file" id="fileselect" name="fileselect" >

<$button>
<$action-sendmessage $message="tm-new-tiddler"
title
= ?????
/>
MAKE TIDDLER
</$button>



How to connect, ie. transfer right value to the new tiddler name?

Is it possible to do by the drag-drop method, e.g. in a text input field?

Thanks in advance!
G.

PMario

unread,
May 5, 2017, 11:22:23 AM5/5/17
to TiddlyWiki
Hi Gordan,

Which OS do you use?

-m

Gordan Nia

unread,
May 5, 2017, 1:07:50 PM5/5/17
to TiddlyWiki
OSX and Windows, I use TW on Dropbox.
Reply all
Reply to author
Forward
0 new messages