javascriptdropboxdropbox-apidropbox-sdk-js

Dropbox JavaScript SDK suddenly gives "Dropbox.Dropbox is not a constructor" error


I am using Dropbox JavaScript SDK. Until 8 Jun 2020 my upload code worked fine but after 8 Jun 2020 it gives an error. See below for the code and error:

code

var ACCESS_TOKEN = '<?php echo DROP_BOX_TOKEN; ?>';
var dbx = new Dropbox.Dropbox({accessToken: ACCESS_TOKEN});

error

Uncaught TypeError: Dropbox.Dropbox is not a constructor

Thanks


Solution

  • This issue is now fixed with the latest release and should be working properly again.