Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

livewire upload file progress indicator

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 #file #progress #indicator
ADD COMMENT
Topic
Name
7+1 =