Uploading video on resource

I have this on my resource
Forms\Components\FileUpload::make('image_url')
->image()
->acceptedFileTypes(['image/png','image/x-png','image/gif','image/jpg','image/jpeg']),
Forms\Components\FileUpload::make('video_url')
->default(null)
->acceptedFileTypes(['video/mp4','video/ogg','video/webm']),

Forms\Components\FileUpload::make('image_url')
->image()
->acceptedFileTypes(['image/png','image/x-png','image/gif','image/jpg','image/jpeg']),
Forms\Components\FileUpload::make('video_url')
->default(null)
->acceptedFileTypes(['video/mp4','video/ogg','video/webm']),

I'm working on local, the images and videos are on local, and the upload is so slow, for the video it takes more than 5 minutes and the end, the video doesn't store, the video is a .mp4 and 300mb Any idea?
1 Reply
LeandroFerreira
LeandroFerreira2mo ago
The issue is probably due to uploading a large file. Did you try uploading a smaller one? Also, check the server and Livewire configs to increase the limits.
Livewire
File Uploads | Livewire
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Want results from more Discord servers?
Add your server