cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

If use files/append_v2 with close=true need finish?

New member | Level 2
New member | Level 2

There is a new API files/append_v2 with the close=true.  Do I need to call Finish if I specify close=true on the last append_v2 call?  That would save me one API call to the server.

 

Also, what does the close really do?  I can't find any documentation on what it means.

1 Reply 1
Highlighted

Re: If use files/append_v2 with close=true need finish?

Dropboxer
Dropboxer

The documentation for /2/files/upload_session/append_v2 describes the close parameter as:

 

"close Boolean If true, the current session will be closed, at which point you won't be able to call upload_session/append_v2 anymore with the current session. The default for this field is False."

 

That is, you can't add more data to an upload session once you "close" it. You should close it once you've finished uploading the data for that file.

 

You do still need to call finish, even if you've already closed the upload session. When you call finish, you commit the upload, specifying the desired file path, write mode, etc.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?