Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sameed_editz's avatar

Video Preview Not Updating After Upload in Livewire Component Despite URL Change

I'm working on a Laravel project using Livewire and am trying to update the video preview after uploading a new video file. The temporary URL of the video file changes correctly after upload, but the video in the element does not update even though the URL reflects the new file.

Here’s my Livewire component and Blade template:

Livewire Component

my livewire blade

please help me with this

0 likes
2 replies
aidil's avatar

Try adding a bit of JavaScript to refresh the video element and play the new video after upload by using a Livewire event.

Please or to participate in this conversation.