Code Monkey home page Code Monkey logo

Comments (6)

vinodc avatar vinodc commented on June 5, 2024

To confirm, the startFileUpload event doesn't fire when you select the Computer option and perform an upload?

from file-picker.

robrobbins avatar robrobbins commented on June 5, 2024

why does it have to be the "Computer" option? In my case it is not, it was a dropbox one...

from file-picker.

vinodc avatar vinodc commented on June 5, 2024

Based on the earlier discussion, we handle selected events when files in cloud storage are chosen, since they are not being 'uploaded' by the user. This is different from success when, for example, 1000 files are selected. It takes some time to create links for all of them prior to returning the information. This is when the selected event becomes useful for your use case (hiding the window so the user doesn't need to wait).

This is the same principle behind the startFileUpload. It fires as soon as the user clicks the primary action button (to upload the files). It fires the event for each file uploaded via the Computer. The final finishFileUpload will be followed by the success event.

Admittedly, the event types are different and have different levels of granularity. However, the process for cloud storage selections vs. the user uploading files is inherently different.

from file-picker.

robrobbins avatar robrobbins commented on June 5, 2024

shit, hate it when i do that (wrong button).

you may want to indicate that in the docs - that startFileUpload is "Computer" only.

I can use selected for cloud ones

from file-picker.

vinodc avatar vinodc commented on June 5, 2024

@robrobbins Yup! We'll clarify the docs.
@chriskuehl We should probably also fire the start/finish upload events for the saver as well.

from file-picker.

vinodc avatar vinodc commented on June 5, 2024

Misc. changes for docs and Saver made in eaa5fba

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.