Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow saver to be specified for download #1755

Open
twMat opened this issue May 23, 2015 · 5 comments
Open

Allow saver to be specified for download #1755

twMat opened this issue May 23, 2015 · 5 comments

Comments

@twMat
Copy link
Contributor

twMat commented May 23, 2015

This discussion has a solution to let the user click a button so to save the TW via a custom template filter.

It is desirable to extend this so that the user can specify which saver to use, from potentially many. For instance it is desirable to be able to save/upload directly to a tiddlyspot.

The button might be formed as;

<$button>
<$action-sendmessage $message="tm-download-file" $param="<title-of-your-template>" filename="index.html" saver="upload"/>
Publish
</$button>

@Jermolene
Copy link
Owner

I've realised that in fact the message needs to carry all the parameters required by the saver - in the case of the upload saver, that's the wiki name and the password. (To avoid storing passwords within TiddlyWiki, the password would be specified as the name of the local storage entry containing the password, just as we do for the TiddlySpot password at present).

@twMat
Copy link
Contributor Author

twMat commented May 24, 2015

Makes sense.

Maybe this is already taken into account, but would upload to regular commercial servers perhaps demand futher parameters? Tiddlspot conveniently combines username and location name but this is, I guess, exceptional.

@Jermolene
Copy link
Owner

The upload saver is pretty specific to TiddlySpot and BidiX's earlier upload.php script. I wouldn't expect it to work with other services - most online services use oAuth for signin, which is a lot more complex than username/password.

@twMat
Copy link
Contributor Author

twMat commented May 24, 2015

Ok. Well, solving it for tiddlyspot is the big one.

@danielo515
Copy link
Contributor

I think this is a very important improvement. It's a problem to be forced to use just one saver module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants