Dropbox /预览不工作
Dropbox /previews not working
我正在尝试获取文件 preview 使用:
curl "https://api-content.dropbox.com/1/previews/auto/Get Started with Dropbox.pdf" -H "Authorization: Bearer <ACCESS-TOKEN>"
但它总是return:
{"error": "no_preview.file_content."}
如果我的做法有什么不对的地方请指教
更新
尝试 /files (GET):
curl "https://api-content.dropbox.com/1/files/auto/Get Started with Dropbox.pdf" -H "Authorization: Bearer <ACCESS-TOKEN"
它 return 内容(下载文件)。
来自https://www.dropbox.com/developers/core/docs#previews:
Previews are only generated for the files with the following
extensions: .doc, .docx, .docm, .ppt, .pps, .ppsx, .ppsm, .pptx,
.pptm, .xls, .xlsx, .xlsm, .rtf
PDF 不在列表中。
我正在尝试获取文件 preview 使用:
curl "https://api-content.dropbox.com/1/previews/auto/Get Started with Dropbox.pdf" -H "Authorization: Bearer <ACCESS-TOKEN>"
但它总是return:
{"error": "no_preview.file_content."}
如果我的做法有什么不对的地方请指教
更新
尝试 /files (GET):
curl "https://api-content.dropbox.com/1/files/auto/Get Started with Dropbox.pdf" -H "Authorization: Bearer <ACCESS-TOKEN"
它 return 内容(下载文件)。
来自https://www.dropbox.com/developers/core/docs#previews:
Previews are only generated for the files with the following extensions: .doc, .docx, .docm, .ppt, .pps, .ppsx, .ppsm, .pptx, .pptm, .xls, .xlsx, .xlsm, .rtf
PDF 不在列表中。