0

我正在尝试使用 Dropbox API 将文件上传到 Ink Filepicker,但我找不到任何有关执行此类操作的文档。

它是在后端使用 Ruby 而不是 Javascript 前端完成的,因为它需要在添加新照片时自动上传新照片(特别是在“/Camera_Uploads”文件夹中)。

有没有人做过这样的事情的经验?我看到的一个解决方案是共享文件,然后使用 Filepicker REST API 上传它们,但这似乎是一种不好的方法。

4

1 回答 1

0

I think that your approach of sending a URL to File Picker is a good one, but I would suggest using a media link instead of a share link. Media links expire after four hours, so they're a good alternative to permanently sharing a file.

In Ruby, the method you want is DropboxClient.media.

于 2013-09-07T03:05:23.213 回答