We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

DavidM27's avatar
DavidM27
Explorer | Level 4
5 years ago

Issue UploadSession and UploadSessionBatch with big files

Hello,    I'm working with the dropbox API in TypeScript. I do want to be able to able all kind of files (small, large, multiple files...) For that I have made a method to uplaod a single file, an...
  • Greg-DB's avatar
    5 years ago

    When using filesUploadSessionFinishBatch, "UploadSessionStartArg.close or UploadSessionAppendArg.close needs to be true for the last upload_session/start or upload_session/append_v2 call". That is to say, since filesUploadSessionFinishBatch can't itself take any further file data, you need to make sure you've already finished sending all of the file data for each upload session, and have indicated that to the Dropbox API on the previous call for that upload session, by setting 'close' to 'true'.

     

    The 'not_closed' error you're getting is indicating that you didn't close the upload session before calling filesUploadSessionFinishBatch. So, you'll need to update your code to set 'close:true' on UploadSessionAppendArg for the the last call to filesUploadSessionAppendV2 for each upload session that you're then sending to filesUploadSessionFinishBatch.