-
Notifications
You must be signed in to change notification settings - Fork 0
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
Embedding items stored in a DropBox onto a static page #9
Comments
I now have this working with |
Nice find on the whitelist! I think it would be preferable to proxy the pdf to obscure the storage service, but that might not be technically possible with a static site so maybe that concern can be addressed a bit further down the road. |
Yeah, I am not sure how to do that, but definitely something to think about. Likely an instance where I will need some help choosing the right search terms. |
So there are a few ways to proxy content that I'm aware of (and probably several dozen ways I'm not aware of):
There are probably proxying services that would let us buy this behavior relatively cheaply compared to running an app ourselves. Or, we just deal with having the dropbox banner until there is a donor base to support something more robust. |
To embed an image
To embed an image with this share link:
(opens in Dropbox preview) – https://www.dropbox.com/s/oms452nw3yqewsh/Photo0213.jpg?dl=0
Using the link as-is does not work:
Changing the ending to
raw=1
, does:(opens raw image) – https://www.dropbox.com/s/oms452nw3yqewsh/Photo0213.jpg?raw=1
PDFs seem harder
Clicking this just downloads the item: "https://dl.dropbox.com/s/74sk9c4ba0p3yhj/Dynamic%20variable%20naming%20discussion.pdf?raw=1"
Same for ending in ?dl=0, ?dl=1, and nothing on the end.
Solution?
Dropbox seems to offer an embedder to its developers: https://www.dropbox.com/developers/embedder
I think it is easy to become one of these, but you need a domain name so that it can be whitelisted.
The text was updated successfully, but these errors were encountered: