question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fire event when all files are completely prepared

See original GitHub issue

Will be very useful event, when all added files are completely prepared. I think, for now, this event can be fired, when preview for files will be generated. Also, be very useful to provide method for add/get multiple files at once, like addFiles()/getFiles

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
arturicommented, Jan 16, 2018

Will be very useful event, when all added files are completely prepared

How do you mean, like if you add 10 files, when all of them are actually in state, after all the checks and hooks?

when preview for files will be generated

After #461 is merged, preview generation will be in a separate plugin, so not sure about this.

add/get multiple files at once, like addFiles()/getFiles

Internally this method would be doing files.forEach(file => addFile) anyway, so trying to think if its worth adding a shorthand method for this. How would you use it? As for getFiles, you can just do uppy.getState().files, would that work?

0reactions
arturicommented, Jul 26, 2018

Events for preview generation are being added in #970, closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript event to fire after all script files have been loaded
This I found works form me: var everythingLoaded = setInterval(function() { if (/loaded|complete/.test(document.
Read more >
How to fire an event on file select using jQuery - GeeksforGeeks
The JQuery change() method is used to fire an event when file is selected. Using change() method: It is used to change the...
Read more >
Window: load event - Web APIs - MDN Web Docs - Mozilla
The load event is fired when the whole page has loaded, including all dependent resources such as stylesheets, scripts, iframes, and images.
Read more >
.ready() | jQuery API Documentation
When this event fires it indicates that all assets on the page have loaded, including images. This event can be watched in jQuery...
Read more >
HTML onload Event Attribute - W3Schools
The onload attribute fires when an object has been loaded. ... a web page has completely loaded all content (including images, script files,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found