Compute a "content hash" using the same algorithm as dropbox. This
can be used to verify the content against the
field returned in
A vector of filenames
Dropbox returns a hash of file contents in
However, this is not a straightforward file hash. Instead the file
is divided into 4MB chunks, each of those is hashed and then the
concatenation of the hashes is itself hashed (see
page in the dropbox developer documentation for the details).
It's entirely unclear why it does not compute a hash of the file
itself, but here we are.
A character vector the same length as
element is 64 character string which is the unique hash. Two
files that have the same hash have the same contents. Compare
this hash of a local file with the
content_hash field from
drop_dir to see if you have the same file as
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.