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
Mohamed Hesham
Mohamed HeshamOP3mo ago
Any help?
awcodes
awcodes3mo ago
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.
Mohamed Hesham
Mohamed HeshamOP3mo ago
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?
awcodes
awcodes3mo ago
I don’t know if one and I don’t have the time to write one. Sorry. I would think there is one though.
Mohamed Hesham
Mohamed HeshamOP3mo ago
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?
awcodes
awcodes3mo ago
not following what you are trying to do with a 'plain input file field'
Mohamed Hesham
Mohamed HeshamOP3mo ago
I created a custom filament field and wrote this inside
No description
Mohamed Hesham
Mohamed HeshamOP3mo ago
When I do this, it uses livewire and uploads the file when selected to my server
awcodes
awcodes3mo ago
Yea. That’s how it works, but that livewire doc I sent tells you how to bypass uploading the temp file to your server.
Mohamed Hesham
Mohamed HeshamOP3mo ago
It says to do this by assigning the s3 storage flysystem, right?
awcodes
awcodes3mo ago
S3 is just an example. Tell it to use what ever disk you need.
Mohamed Hesham
Mohamed HeshamOP3mo ago
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
awcodes
awcodes3mo ago
I’m surprised they have different storage for streaming. Storage is storage. Weird.
Mohamed Hesham
Mohamed HeshamOP3mo ago
I used TUS with javascript directly Bunny supports TUS
Want results from more Discord servers?
Add your server