can't import to file download from tiddlyspot

44 views
Skip to first unread message

dukeja

unread,
Mar 13, 2009, 10:56:13 AM3/13/09
to TiddlyWiki
Hi,

I am trying to use Tiddlyspot to host a website with my existing TW
file locally. So I download the site to my local drive and tried to
import my existing tiddlers into this downloaded file. But I got this
error message:

[Exception... "Component returned failure code: 0x80520012
(NS_ERROR_FILE_NOT_FOUND) [nsIXMLHttpRequest.send]" nsresult:
"0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///L:/tmp/scbctw.html :: httpReq :: line 10042" data: no]

I know that I cannot directly import tiddlers into on-line site
(unless thru proxy), and the Tiddlyspot FAQ suggests download/import/
upload approach. But it didn't work for me. I have used TW file
locally for quite a while and never had issue with import (TW 2.4.1 &
FF 3.0). And the site file I download may have some in-file setting
that do not allow import.

Thanks for your help!

Duke

dukeja

unread,
Mar 13, 2009, 11:54:55 PM3/13/09
to TiddlyWiki
I don't know why it needs to be so difficult. But I guess something
just went strangely in the downloaded site file from tiddlyspot. It
just didn't allow import.

OK, so I worked the other way around according to the tiddlyspot FAQ
1. import uploadplugin and TspotSetupPlugin from the on-line
tiddlyspot site

2. And it won't work because you also need PasswordOptionsPlugin

3. And if you use the upload button on the backstage. it won't work
and give you lots of confusing error messages

4. So you have to cut and paste the WelcomeToTiddlyspot from your on-
line site to get the "upload" button in that tiddler. This is faster
way to do it. I guess someone can read the doc file of uploadplugin
and learn how to use it (by the way the doc tiddler is not available
on the on-line site page and the original link to BidiX's site seems
to be down....)

Oh well, it will eventually work after you dig around here and there.
Or maybe the FAQ will get updated sometime to help others to come...

Duke

Eric Shulman

unread,
Mar 14, 2009, 5:56:24 AM3/14/09
to TiddlyWiki
> I am trying to use Tiddlyspot to host a website with my existing TW
> file locally.  So I download the site to my local drive and tried to
> import my existing tiddlers into this downloaded file.  But I got this
> error message:
>
> [Exception... "Component returned failure code: 0x80520012
> (NS_ERROR_FILE_NOT_FOUND) [nsIXMLHttpRequest.send]" nsresult:
> "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
> file:///L:/tmp/scbctw.html :: httpReq :: line 10042" data: no]

Note these two important bits of information:
"FILE NOT FOUND"
file:///L:/tmp/scbctw.html

This indicates that the file wasn't at the above location... and I'll
bet that location wasn't the one you actually selected for importing.
If that's the case, then here's an explanation, a work-around, and a
fix:

Although pressing the "browse..." button from the importer lets you
navigate to and select a file in another directory, due to a 'security
restriction' imposed by FF3,
only the *filename* part of the selection is being returned to
TiddlyWiki for processing.

As a result, TW only looks in the current directory when attempting to
open and read the selected file, regardless of the actual location of
that file.

The work-around is to simply ensure that the file you are importing
from is always located in the same directory as the file you are
viewing.

For a more 'permanent' fix, you can install:
http://www.TiddlyTools.com/#CoreTweaks

In particular, you want to get these tweaks:
#683 FireFox3 Import bug: 'browse' button replacement
#604 cross-platform askForFilename()

Once installed, the replacement for the "browse" button in the
importer will show as "..." (so that the button text does not need to
be translated into other languages), and will invoke a *secure* 'ask
for filename' dialog.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

dukeja

unread,
Mar 16, 2009, 11:02:56 AM3/16/09
to TiddlyWiki
Eric:

You are always the best to help us!

Thanks!!

Duke
Reply all
Reply to author
Forward
0 new messages