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: 

download excel file via API & webhock and save it locally

download excel file via API & webhock and save it locally

ranstyr
New member | Level 2

Hi All,

 

The feature I am trying to implement is once customer updates a file, We will download the file and extract some data from it.

 

We implement Dropbox webhook - https://www.dropbox.com/developers/reference/webhooks.

(using Phyton).

 

We are getting to 

f, metadat = client.get_file_and_metadata(path)

 

We are trying to save the file to our firebase database (as our code runs on Node).

 

storageFile = storage.put(f)

 

and getting 

ValueError: total bytes could not be determined. Please pass an explicit size.

 

Any Advice?

 

Thanks,

Ran.

1 Reply 1

Greg-DB
Dropbox Staff

Is the get_file_and_metadata call running successfully? It sounds like that error message is coming from your Firebase database method, so I'm afraid I can't be of much help here. You may want to refer to the documentation/support channels for that instead.

 

Also, note that you're using Dropbox API v1, which is deprecated. You should migrate to API v2.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?