[SOLVED] PDF Media Files not previewing in browser

Hi @bryndonlee,

BlobMedia doesn’t have a URL, because it doesn’t live on any servers! (You can get URLs for Media in data tables or Google Drive, because they can be reached at a central location, whereas a BlobMedia might only exist in the browser.)

You can, however, assign any Media object to the url property of a Link, like so:

my_media = BlobMedia('text/plain', 'Hello, world', name='hello.txt')
self.link_1.url = my_media
1 Like