Google Drive MD5文件校验和 [英] Google Drive MD5 checksum for files

查看:744
本文介绍了Google Drive MD5文件校验和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是程序员,只是Google云端硬盘的常规用户。我想查看文件是否正确上传。我在OAuth 2.0 Playground中经历了一个列出所有文件的整个过程,显示了MD5校验码,但也显示了每个文件的大量信息。如果我上传了一个新文件,很难搜索它并验证它的md5校验和。



是否有更简单的方法(通过应用程序,也许?)显示/列表上传文件的MD5校验和?我想知道为什么Details窗格没有它,只列出了以字节为单位的文件大小。 解决方案

注意:这些说明对v3 API略有改变



我已经想出了一种快速获取上传文件的MD5校验和并决定共享的方法它也在这里。登录您的Google云端硬盘帐户,然后: 访问: https://developers.google.com/drive/v2/reference/files/list



向下滚动至<点击它,将使用OAuth 2.0授权请求从OFF更改为ON,然后选择:




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


然后点击授权。



选择您的帐户,然后点击接受。



使用以下内容填写字段:使用v3 API的文件)

lockquote

项目(md5Checksum,originalFilename)

仅获取文件名和MD5校验和列表。



点击执行,您将打开一个列表,其中包含上传到Google云端硬盘的所有文件及其MD5校验和。


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.

解决方案

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/v2/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: (replace items by files with v3 API)

items(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.

这篇关于Google Drive MD5文件校验和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆