> Thanks a lot Eric. At least I got this to work in the sense I managed > to get a new Tiddler automatically created – as against getting the > Dialog from Firefox asking if I wanted to open the file. > > The resulting file seems to have 5 sections i.e. “usage”, “notes”, > “type”, “file”, “url”, and “data” Is it possible to change these > sections.
That is an 'attachment' tiddler created by AttachFilePlugin when you drop a *binary* file (or at least one that does not have MIME type="text/plain"). If you don't want to use attachments, you should simply disable/remove that plugin. Then, FileDropPlugin will consider all files to be "text/ plain", and always create simple text tiddlers (with an embedded hidden !link section) > I want to remove the data i.e. only to link to the file. (I > unchecked the “Copy file content into tiddlers… ” – but it still > creates the “data” section. I had a small error in the handling for the chkFileDropContent option setting. As a result, attachments would be created for non-text file types, even when the checkbox was unselected. I've corrected this, and you can get the update (v2.1.2) here: http://www.TiddlyTools.com/#FileDropPlugin After upgrading, when you unselect the "Copy file content..." checkbox, it will not create any more attachment tiddlers, even if AttachFilePlugin is installed in the document. > I also don’t think that “URL” and “Type” > help, because they are either null or obvious from the file extension > (in my personal case). Is it possible to modify these sections? Attachment tiddlers have several sections that are used programmatically by AttachFilePluginFormatters to provide a 3-tier fallback mechanism for 'virtualizing' the location of files: * !data = embedded data (using base64 text encoding) * !file = local path/file (native OS format) * !url = remote URL (http:// or file:// or relative path/file) The other sections of the attachment are provided for information purposes only. Once an attachment tiddler has been generated, you can edit it to remove any sections you don't want (even the data, file or url sections). If a section is missing, the ...Formatters plugin will simply not have that value as a fallback for that attachment. > You mention the option “Generate an external link to files, using this > format:” seems to be work perfectly. Thanks a lot for that. I only > which I could change the 5 sections mentioned above. As noted above, if you get the updated FileDropPlugin v2.1.2, you can now completely bypass creation of any attachments by deselecting the "copy file contents..." checkbox. > Note to other readers: There are two different FileDropPlugin’s being > talked about in this thread, one from Eric, and the other one referred > to by Wolfgang in his posts above. The one that Wolfgang is referring to is simply an older version of FileDropPlugin. Bradley Meck originally wrote the main utility functions of FileDropPlugin (at my request), a long time ago. I then added FileDropPluginConfig, to add enhanced support for dropping multiple files/folders, and *optionally*, handling binary files as attachments (if AttachFilePlugin is installed alongside). Since then, Bradley has moved on to other things, and I 'adopted' the pair of FileDrop plugins, and have been steadily maintaining and improving the code over time. A few months ago, while working in that code, I finally got around to merging the separate plugin tiddlers, which allowed for some significant size reduction, better integration of options and features, and some cleanup of the documentation as well. So: if you are using the current release of FileDropPlugin (v2.1.2), then you don't need FileDropPluginConfig (which is obsolete, and no longer being distributed on TiddlyTools). 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 -~----------~----~----~----~------~----~------~--~---

