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
Figure out and document how to upload an existing TW file to a Tiddlyhost site #55
Comments
One simple solution is to drag and drop your existing single Tiddlywiki.html over the newly created site on Tiddlyhost. As an example see https://kookma.tiddlyhost.com/ which is updated with http://tw-tables.tiddlyspot.com/ |
It would be nice to be able to fill in some details in control panel and save any TiddlyWiki across to TiddlyHost, regardless of where it is stored, as we could with TiddlySpot. It looks TiddlyHost uses a cookie called In the meantime, perhaps it's easier to provide an upload button in the TiddlyHost wiki listing? That would also make it possible to publish in read only form older versions of TW5 or TWC that lack the new PUT saver. |
A few thoughts:
|
Yes, that seems more robust; it could work very similarly to GitHub's personal access tokens: one would click a button on the TH control panel to copy the token to the clipboard, and then paste it into the target TiddlyWiki.
I can imagine that one wouldn't want to make it too easy to upload non-TW files. Is there anything to stop users grabbing the session cookie and using Curl to upload arbitrary files now? Come to think of it, one could adapt TW very easily to save arbitrary files back to TH. One perhaps crazy approach would be to store tiddlers rather than TW files, and dynamically splice them into a template with the latest core (perhaps with a query parameter to allow overriding the core version used). I think that might be the only way you could guarantee that you're serving a bona fide TW.
Could be handy, but wouldn't work for file:// URIs.
As I recall, POSTs are blocked on one browser (maybe Chrome?) but not another (maybe Firefox).
True. On balance, the file upload option seems the best approach, if the security/DMCA concerns can be squared. |
The upload button was added via 93a7367 , so I think that's enough to close this. See also this guide on uploading. Notes:
|
No description provided.
The text was updated successfully, but these errors were encountered: