md5google-drive-apichecksum

Google Drive MD5 checksum for files


I'm not a programmer, just a regular user of Google Drive. I want to see if the files are uploaded correctly. I go through a whole process in the OAuth 2.0 Playground that lists all files, shows the MD5 checksums but also lots of information per file. If I upload a new file it's hard to search for it and verify its md5 checksum.

Is there an easier way (through an app, maybe?) to show/list MD5 checksums for the uploaded files? I wonder why the Details pane doesn't have it, only lists the file size in bytes.


Solution

  • edit: NB these instructions have changed slightly for the v3 API

    I've figured out a quick way to get the MD5 checksums of the files uploaded and decided to share it here, too. Log into your Google Drive account, then:

    Visit: https://developers.google.com/drive/v3/reference/files/list

    Scroll down to the Try it! section.

    Change "Authorize requests using OAuth 2.0" from OFF to ON by clicking on it, then select:

    https://www.googleapis.com/auth/drive.metadata.readonly

    and click Authorize.

    Choose your account then click Accept.

    Fill in the fields field with:

    for v2 API:

    items(md5Checksum,originalFilename)

    for v3 API:

    open "Show standard parameters" in GUI to see fields than

    files(md5Checksum,originalFilename)

    to only get a list of filenames and MD5 checksums.

    Click Execute and you'll open a list with all the files uploaded to Google Drive and their MD5 checksums.