Dropbox /previews not working


I'm trying to get the file <a href="https://www.dropbox.com/developers/core/docs#previews" rel="nofollow">preview</a> using:

curl "https://api-content.dropbox.com/1/previews/auto/Get Started with Dropbox.pdf" -H "Authorization: Bearer <ACCESS-TOKEN>"

But it always return:

{"error": "no_preview.file_content."}

Please advise if there is anything wrong with my approach.

<hr />


Trying with <a href="https://www.dropbox.com/developers/core/docs#files-GET" rel="nofollow">/files (GET)</a>:

curl "https://api-content.dropbox.com/1/files/auto/Get Started with Dropbox.pdf" -H "Authorization: Bearer <ACCESS-TOKEN"

And it return the content (download the file).


From <a href="https://www.dropbox.com/developers/core/docs#previews" rel="nofollow">https://www.dropbox.com/developers/core/docs#previews</a>:


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 isn't on the list.


  • python how to parse json file export from phpmyadmin
  • Setting an environment variable
  • Which is the best way to read binary file content to std::string? [duplicate]
  • Spring MVC AccessDeniedException 500 error received instead of custom 401 error for @PreAuthorized u
  • PHP exec response as string?
  • Youtube upload API and cordova / phonegap
  • IDX10503: Signature validation failed
  • Sails.js API passport.js authentication
  • oauth2client.client.HttpAccessTokenRefreshError: invalid_grant: Invalid JWT
  • Syntax error near unexpected token 'elif'
  • Plotting Route with Multiple Points in iOS
  • Uber API - requests endpoint cannot read read json
  • read values from form post in jquery or javascript
  • Fetching methods from BroadcastReceiver to update UI
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Apache 2.4 - remove | delete | uninstall
  • RestKit - RKRequestDelegate does not exist
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • Revoking OAuth Access Token Results in 404 Not Found
  • WPF Applying a trigger on binding failure
  • Benchmarking RAM performance - UWP and C#
  • Java static initializers and reflection
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • Change div Background jquery
  • File not found error Google Drive API
  • How to get Windows thread pool to call class member function?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Bitwise OR returns boolean when one of operands is nil
  • Is there any way to bind data to data.frame by some index?
  • Django query for large number of relationships
  • costura.fody for a dll that references another dll
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • How can I use `wmic` in a Windows PE script?
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal
  • How to push additional view controllers onto NavigationController but keep the TabBar?