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

[Idea] "Upload any file" for a site where the file becomes a tiddler automatically #298

Open
simonbaird opened this issue Feb 22, 2023 · 1 comment

Comments

@simonbaird
Copy link
Collaborator

I guess it requires that the file type is renderable in TiddlyWiki. I'm thinking of images particularly, but PDFs should also be fine.

The flow (for example):

  • User wants to make a photo album
  • User clicks "Upload images" from the Tiddlyhost actions menu and selects (say) 50 jpeg files
  • These files are saved by Tiddlyhost
  • The next time the site is reloaded, all the photos automatically become tiddlers with an "external content" field that links to a url with the file content so they photos appear. (Alternatively they could be "lazy loaded" tiddlers with the content embedded, as long as we can ensure that they do not become embedded in the TiddlyWiki when it is next saved.)
  • User can then created a nice photo album in TiddlyWiki in whatever way they like.
  • The TiddlyWiki file remains manageably small.

How to manage the uploaded files is still to be determined, e.g. what if you want to delete them later?

There's some overlap here with #236 which talks about using the upload files plugin. This idea doesn't exclude that one, but I consider this idea easier to prototype because it doesn't rely on a TiddlyWiki plugin, and because Tiddlyhost already supports injecting Tiddlers into a TiddlyWiki file when it is served. Also it doesn't require any change to the current TiddlyWiki saving mechanism afaict.

@simonbaird
Copy link
Collaborator Author

Similar idea for PDF files:

  • User uploads their collection of PDF files
  • They automatically become tiddlers
  • They can be organized and tagged as required using TiddlyWiki
  • The TiddlyWiki file remains small because it doesn't have all the PDF files embedded

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

1 participant