Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

livewire upload progress

window.addEventListener('livewire-upload-start', event => {
  console.log('upload started');
});
window.addEventListener('livewire-upload-finished', event => {
  console.log('upload finished');
});
window.addEventListener('livewire-upload-error', event => {
  console.log('upload error');
});
window.addEventListener('livewire-upload-progress', event => {
  console.log(`${event.detail.progress}%`);
});
Source by laravel-livewire.com #
 
PREVIOUS NEXT
Tagged: #livewire #upload #progress
ADD COMMENT
Topic
Name
2+4 =