Giter Site home page Giter Site logo

Comments (5)

vinodc avatar vinodc commented on July 23, 2024

My recent changes to the documentation were incorrect. I've modified them to be more accurate in ac76a14 for the save() method: it takes in an array of files to save.

from file-picker.

lutherism avatar lutherism commented on July 23, 2024

OK I see. So we put the file array in both the constructor options, and the save options?

If I don't include the files list in the constructor call, I get a "No files to save" console.log on explorer.save(<files array>), and it fails to open.

so this code works. It's intended that the files array is duplicated?

Kloudless.explorer({
  ...
  files: <files array>
}).save(<files array>);

from file-picker.

vinodc avatar vinodc commented on July 23, 2024

This looks like a bug with our race condition handling. We'll get a fix for this released to production by tonight. The files option in the constructor should not be necessary, but since the save() call is performed prior to the File Explorer being completely loaded, the timeout that eventually calls it does not appear to pass in the correct options.

To get it to work for now, feel free to continue using the format above. However, once the fix is released, you'll only need the files object in one (either the constructor or the save() method). Apologies for the inconvenience here.

from file-picker.

lutherism avatar lutherism commented on July 23, 2024

Good to know. Thanks!

from file-picker.

vinodc avatar vinodc commented on July 23, 2024

The fixes have been released.

from file-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.