> When I drop a single file into an open tiddler, it the filedrop plugin
> works fine. When I select mutilpe files or a directory to drop into an
> open tiddler, it never completes and I have to kill the Firefox tab
> and reload from disk. I am not sure what is wrong. Does anyone have
> the same problem or have a solution?

The default "drop handler" defined by FileDropPlugin is very simple,
and only handles *text* files, dropped one at a time, from which it
creates tiddlers, using the text from the file as the body of the
tiddler.

However, if you want to drop multiple selected files or *folders* at
once, you need to install a more advanced drop handler as an addon to
FileDropPlugin:

   http://www.TiddlyTools.com/#FileDropPluginConfig

Also, if you install
   http://www.TiddlyTools.com/#AttachFilePlugin
   http://www.TiddlyTools.com/#AttachFilePluginFormatters
then the extended handling of FileDropPluginConfig will allow you you
to drag and drop *binary* files into your TW document.

The file contents are first converted using "base64" text-encoding
(the same method used to store attachments in email messages), and
then the resulting text block is saved within a section of a specially-
formatted tiddler that has an 'attachment' tag.  With
AttachFilePluginFormatters in place, you can then use normal TW image
syntax to display the embedded files (assuming they are GIF/JPG/PNG
images, of course), like this:

   [img[NameOfAttachmentTiddler]]
   (i.e., use a tiddler name in place of an external "path/file.jpg"
reference)

The ...PluginFormatters code takes care of resolving the image data
using a 3-tiered approach: if the attachment has base64-encoded data
(and you are not using IE), then the data is applied to render the
image.  Otherwise, if a local path/file is defined in the attachment,
that external file is used... and, if no local file is found, then a
final fallback to a remote URL can be used.  Of course, if all these
sources are unavailable, then the usual 'broken image' icon will
appear in the output (unless your browser is set to hide those).

enjoy,
-e



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to