Embedding uppy to automatically upload images to S3
25 views
Skip to first unread message
Roman Nguyen
unread,
Jun 3, 2020, 10:12:40 AM6/3/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TiddlyWikiDev
Hi all,
I recently started using tiddlywiki using tiddly drive and I fought a bit with images. Putting images in the same folder on google drive doesn't work and it's not (very) possible to get a direct URL.
I discovered https://uppy.io/ which is a javascript file uploader. My idea was to embed that in tiddlywiki, so I could simply drag an image from my desktop (potentially phone), it would get automatically uploaded to my S3 bucket and I could just paste that URL in the [img] tag. It could be pretty seamless after some processing (automatically generating the tag, for example).
Saving this in a html file and calling it in a browser works (this uploads to their server, but changing it to your own S3 bucket should be definitely doable looking at the documentation). Worst case is I have two tabs open next to each other and just switch when I upload an image.
I couldn't however get this to embed in tiddlywiki. I get that <script> tags are sanitized, so I tried this to wrap it in this: http://fiddle.tiddlyspot.com However, that did not work.
My questions would be the following:
1) Is this possible/viable at all?
2) Can we write a plugin or widget? I am not very versed in javascript or webdev (python background), but I can try it if you give me some pointers and then share here
Best regards,
Roman
TonyM
unread,
Jun 3, 2020, 8:16:18 PM6/3/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TiddlyWikiDev
Roman,
I am not nessasarily skill to help you here, however have you looked at the raw tags?
These place the tiddlers content in a special parts of the html file.