Thanks a lot Springer.
This is very helpful. I agree on the challenges with Google Drive and
Dropbox.
Regards
Manish

On Wed, 23 Dec 2020 at 05:37, springer <[email protected]> wrote:

> Manish, for dropbox, the general pattern is that dropbox gives you a url
> string that ends in dl=0
> You need to change that ending to raw=1 to make it render properly inside
> any other webpage.
>
> These days I am working exclusively with github for my active tw projects.
> I do use dropbox for image hosting and other backups (and google drive for
> some work stuff), but I don't like the barriers for public sharing of TW
> files from dropbox or google drive, nor the extra clicks to get a session
> started.
>
> -Springer
> On Tuesday, December 22, 2020 at 4:15:49 AM UTC-5 [email protected]
> wrote:
>
>> Dear Springer
>> Thanks a lot. This worked well.
>> I'm assuming the process for Dropbox pdfs is relatively straightforward?
>> Or are there further changes in the links to be made?
>> May I ask which is your preferred cloud backup for TW?
>>
>> Thanks in advance.
>> Manish
>>
>> On Tuesday, 22 December, 2020 at 1:42:26 am UTC+5:30 springer wrote:
>>
>>> Manish,
>>>
>>> Indeed, Google Drive doesn't really want to "host" properly; it wants to
>>> make people visit more directly. So when you generate a "public link" using
>>> google drive, that link just allows people to visit (and then view or
>>> download) a hosted file through google drive's own interface.
>>>
>>> HOWEVER, I found a workaround
>>> <https://blog.usejournal.com/host-static-images-for-your-apps-or-website-on-google-drive-hotlink-to-gdrive-images-358d6fcf8ef7>
>>>  that
>>> shows how to rework the public shareable link that google gives you.
>>> I've copied the revelant lines from a helpful blogger named Pius Aboyi:
>>>
>>> *https://drive.google.com/file/d/**1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV*
>>> */view?usp=sharing*
>>> <https://drive.google.com/file/d/1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV/view?usp=sharing>
>>>
>>> *1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV*
>>> <https://drive.google.com/file/d/1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV/view?usp=sharing>*
>>>  is
>>> the **id** for your file. So, you can build the URL like so:*
>>>
>>> *https://drive.google.com/uc?id=1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV
>>> <https://drive.google.com/uc?id=1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV>*
>>>
>>> In other words, you want to isolate the file's id string, and prefix it
>>> with
>>>
>>> https://drive.google.com/uc?id=
>>>
>>> For me, I've just confirmed that if I've cleared the file at google
>>> drive (setting it up for access by anyone with link), it works to paste
>>> that resulting modified string in the _canonical_uri field, give the
>>> tiddler "application/pdf" type. Now the tiddler window to displays my
>>> google-drive hosted pdf file as expected.
>>>
>>> -Springer
>>>
>>> On Monday, December 21, 2020 at 12:28:31 PM UTC-5 [email protected]
>>> wrote:
>>>
>>>> Dear Springer.
>>>> Is your method also applicable for pdf's hosted in Google Drive.
>>>> When I go to the "Get Link" section, I get a long link. However, TW
>>>> doesnt recognize this as a pdf when I follow your steps.
>>>> Is there a different steps for files hosted on Google Drive?
>>>> Regards
>>>> Manish
>>>> On Tuesday, 14 January, 2020 at 12:16:37 am UTC+5:30 springer wrote:
>>>>
>>>>> Chuck, and Nic,
>>>>>
>>>>> I *can* see PDFs in my TW5, though I haven't tried to get any kind of
>>>>> thumbnail function.
>>>>>
>>>>> I host my PDFs on dropbox, and use dropbox to "copy a public link" for
>>>>> the PDF.
>>>>>
>>>>> Then I create a tiddler, titled however I like. At the bottom of
>>>>> editor interface, add a new field called
>>>>> _canonical_uri
>>>>>
>>>>> (Note that's an i, not an l). Paste your file's url link in the space
>>>>> to the right and click the button to "add" the field.
>>>>>
>>>>> Then go select from the "Type" menu (right below edit box):
>>>>> "application/pdf"
>>>>>
>>>>> When you return to view mode, the result is a little PDF viewer box,
>>>>> much like you see on other websites that host PDFs.
>>>>>
>>>>> Cheers.
>>>>>
>>>>> -Springer
>>>>>
>>>>>
>>>>> On Monday, January 13, 2020 at 11:20:42 AM UTC-5, Chuck R. wrote:
>>>>>>
>>>>>>
>>>>>>    1. Download TW5 to your local hard drive here:
>>>>>>    https://tiddlywiki.com/#GettingStarted
>>>>>>    2. Choose a method of saving the file locally or to Tiddlywiki or
>>>>>>    on some other server. Get that set up somehow. I use Tiddlyspot with
>>>>>>    Chrome, Tiddlyspot does not seem to work well with Firefox as FF 
>>>>>> always
>>>>>>    wants to save the file locally.
>>>>>>    3. Start playing around with features of TW.
>>>>>>    4. I am able to store a PDF on a TW5 but cannot read it inside
>>>>>>    TW5. I just see a blank tiddler.
>>>>>>    5. For EPUB files I'm able to drag and drop an EPUB file on to
>>>>>>    TW5, but the tiddler that contains the EPUB now only says "Tiddler 
>>>>>> contains
>>>>>>    binary data". I cannot view it inside the TW5 and I'm unsure how to 
>>>>>> export
>>>>>>    an EPUB from TW5.
>>>>>>    6. For PDFs you will probably have to take a screen shot of the
>>>>>>    page you want to view in TW5 and show that image. Just drag and drop 
>>>>>> the
>>>>>>    image to TW5. Images are well supported. Then you insert the image 
>>>>>> into
>>>>>>    another tiddler which contains a table.
>>>>>>    7. TW5 has its own wiki language, it is not media wiki. TW5
>>>>>>    supports Markdown but then you lose a lot of TW5 features by using
>>>>>>    markdown. That's why I converted about 20 tiddlers from markdown to 
>>>>>> TW5.
>>>>>>    8. Info on TW5 tables is here:
>>>>>>    https://tiddlywiki.com/#Tables%20in%20WikiText
>>>>>>    9. To download your CURRENT version of your TW5 from Tidddlyspot
>>>>>>    go to YOURWIKI.tiddlyspot.com/download.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/OTgp0kTNmL0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/5ba14e38-b1ee-4091-bc96-57b9167a719fn%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/5ba14e38-b1ee-4091-bc96-57b9167a719fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAK27giWGDOVT_isbZx2wR7rrcSaWA02%2BFu1NrnFpDoYA-htoQw%40mail.gmail.com.

Reply via email to