cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We recently received a question asking for advice on how to set up a Dropbox account for an elderly family member. This prompted us to think about the different ways we can make Dropbox more accessible in general, learn about it and add your tips right over 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: 
1
Ask
2
Reply and help

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

Re: download excel file via API & webhock and save it locally

Greg-DB
Dropboxer

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.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?