cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to retrieve preview for CSV file

Unable to retrieve preview for CSV file

ozdev
Explorer | Level 4

Hey All.

 

I'm attempting to fetch an HTML preview for a CSV file using the `/get_preview` endpoint.  Unfortunately I'm receiving back an `unsupported_extension` error.  Maybe my understanding is wrong? Appreciate any suggestions.

Reviewed the following documentation:

Dropbox `get_preview` Documentation 

Curl request using 'get_preview' resulting in error:

vagrant@vagrant:$ curl -X POST https://content.dropboxapi.com/2/files/get_preview \
     --header "Authorization: Bearer [truncated]" \
     --header "Dropbox-API-Arg: {\"path\": \"/items/24157/18365.catalog-items.csv\"}"

{"error_summary": "unsupported_extension/", "error": {".tag": "unsupported_extension"}}

 

Curl request using 'download' resulting in success:

 

vagrant@vagrant:$ curl -X POST https://content.dropboxapi.com/2/files/download \
     --header "Authorization: Bearer [truncated]" \
     --header "Dropbox-API-Arg: {\"path\": \"/items/24157/18365.catalog-items.csv\"}"

"created_at", "currency", "description", "discountable", "id", "metadata", "name", "object", "taxable", "taxes", "type", "unit_cost"
{...}
"1546048185", "usd", "Overpayment on order after adjustments", "", "overpayment-reconciliation", "", "OVERPAYMENT RECONCILIATION", "catalog_item", "", "", "", "0"

 

 

My understanding is that the API should return HTML data when requesting CSV files from the 'get_preview' endpoint.  

 

Thanks in advance.

5 Replies 5

Greg-DB
Dropbox Staff

Thanks for the report! This looks like a bug on our side. We're looking into it and I'll let you know when we have an update on it.

ozdev
Explorer | Level 4

Morning @Greg-DB 
Just following up to see if DB has had an opportunity to look into this issue.


Thanks

-Steve

Greg-DB
Dropbox Staff

@ozdev This is open with engineering, but I don't have an update on it yet. I'll follow up here once I do.

Greg-DB
Dropbox Staff

This should be fixed now. Please try again and let me know if you're still seeing any issues.

ozdev
Explorer | Level 4

Greg, thank you.  I've just got this task moved into the pipeline.  I'll report back when it's been re-evaluated (& hopefully pushed!)

 

Best

-steve

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    ozdev Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?