简体   繁体   English

在JavaScript Web App中解析Dropbox文件的内容

[英]Parsing Contents of Dropbox File in JavaScript Web App

Is it possible using the Dropbox JS SDK to create a JavaScript web application that is able to parse the files in a user's Dropbox? 是否可以使用Dropbox JS SDK创建能够解析用户Dropbox中文件的JavaScript Web应用程序? In my use case, the user has some JSON files that I would like to parse and preview in the browser. 在我的用例中,用户拥有一些我想在浏览器中解析和预览的JSON文件。 Will the filesDownload(arg) method allow for this type of application, or is it only able to download the file to the user's machine? filesDownload(arg)方法是否允许这种类型的应用程序,还是只能将文件下载到用户的计算机上?

The download methods, such as filesDownload and sharingGetSharedLinkFile return the file content directly as a Blob , as seen in the download example . 下载方法(例如filesDownloadsharingGetSharedLinkFile直接以Blob sharingGetSharedLinkFile返回文件内容,如下载示例所示

As long as you can use a Blob to do what you want, this should be possible. 只要您可以使用Blob做您想做的事,这应该是可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM