Stop uploading file to my server when using bunny video streaming
I am using Bunny to store videos (it's something like Vimeo).
When I upload the video, it uploads first to my machine by livewire, then I handle it to be uploaded to bunny after submitting
I don't want to upload files to my machine before uploading to bunny, as they can be too large
Also, how to show upload progress while submitting?
15 Replies
Any help?
File pond should show a an uploading indicator at least it does for non video files.
For uploading directly to s3 see here https://livewire.laravel.com/docs/uploads#uploading-directly-to-amazon-s3
Laravel
File Uploads | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Thank you
I read the page you sent and it seems interesting
I used an external package and made a Facade that interacts with bunny streaming and now it works but still uploads twice
I found no filesystem adapter for bunny streaming to use it like s3, can you help with that?
I don’t know if one and I don’t have the time to write one. Sorry. I would think there is one though.
I searched a lot
There is one for bunny cdn
But I couldn't find one for bunny streaming
Hi @awcodes
Sorry for asking a lot of questions
I need to avoid uploading the server before bunny, this is my first priority
I am trying to make a plain input file field to submit with the form but it is always null, do you know how to fix this?
not following what you are trying to do with a 'plain input file field'
I created a custom filament field and wrote this inside
You’re not tying it back to the forms state. https://filamentphp.com/docs/3.x/forms/fields/custom#how-fields-work
When I do this, it uses livewire and uploads the file when selected to my server
Yea. That’s how it works, but that livewire doc I sent tells you how to bypass uploading the temp file to your server.
It says to do this by assigning the s3 storage flysystem, right?
S3 is just an example.
Tell it to use what ever disk you need.
Yes, but bunny streaming doesn't have flysystem adapter
I got a great idea
I can upload to bunny storage then I will take the video from there to bunny streaming storage
Bunny storage has Flysystem adapter
I hope it works
I’m surprised they have different storage for streaming.
Storage is storage. Weird.
I used TUS with javascript directly
Bunny supports TUS