Add file upload progress bar support with Livewire integration #54
Loading…
Reference in a new issue
No description provided.
Delete branch "github/fork/chetanupare/feature/file-upload-progress-bar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves: #22
Why simulate a upload progress? Livewire already has a upload progress (See:
livewire-upload-progress): https://livewire.laravel.com/docs/4.x/uploads#progress-indicatorsI prefer keeping text inside components to a minimum because of multi-language support.
We should remove this label and only show the percentage value.
As shown in the docs this would be here:
Then we can add the progress and uploading here:
As we defined the uploading and progress var in the x-data block we can now use it here. We just need to replace the
$wire.uploadProgresswithprogressand thex-showwithx-show="uploading"This should look something like this: