F
Filament11mo ago
lodeki

Uploading Videos.

Hi, i'm trying to use the spatie media library plugin to upload videos in my app
SpatieMediaLibraryFileUpload::make('attachment')->required()->multiple()
SpatieMediaLibraryFileUpload::make('attachment')->required()->multiple()
.However i get the failed to upload error. I did update the maximum file size in php.ini . Currently i don't have permission to post in the package channel .So i was requesting if any can guide me out .Thank you.
3 Replies
lodeki
lodekiOP11mo ago
Any help or idea here?
Dennis Koch
Dennis Koch11mo ago
Also check the config/livewire.php upload limit and the one of your server (nginx/apache)
lodeki
lodekiOP11mo ago
I changed for the server .The livewire config does not have that entry for upload limit . Thinking of adding it .
<?php

return [
'class_namespace' => 'App\\Livewire',
'view_path' => resource_path('views/livewire'),
'layout' => 'components.layouts.app',
'lazy_placeholder' => null,
'temporary_file_upload' => [
'disk' => null, // Example: 'local', 's3' | Default: 'default'
'rules' => null, // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp'
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs...
'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
'mov', 'avi', 'wmv', 'mp3', 'm4a',
'jpg', 'jpeg', 'mpga', 'webp', 'wma',
],
'max_upload_time' => 5, // Max duration (in minutes) before an upload is invalidated...
],
'render_on_redirect' => false,
'legacy_model_binding' => false,
'inject_assets' => true,
'navigate' => [
'show_progress_bar' => true,
'progress_bar_color' => '#2299dd',
],
'inject_morph_markers' => true,
'pagination_theme' => 'tailwind',
];
<?php

return [
'class_namespace' => 'App\\Livewire',
'view_path' => resource_path('views/livewire'),
'layout' => 'components.layouts.app',
'lazy_placeholder' => null,
'temporary_file_upload' => [
'disk' => null, // Example: 'local', 's3' | Default: 'default'
'rules' => null, // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp'
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs...
'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
'mov', 'avi', 'wmv', 'mp3', 'm4a',
'jpg', 'jpeg', 'mpga', 'webp', 'wma',
],
'max_upload_time' => 5, // Max duration (in minutes) before an upload is invalidated...
],
'render_on_redirect' => false,
'legacy_model_binding' => false,
'inject_assets' => true,
'navigate' => [
'show_progress_bar' => true,
'progress_bar_color' => '#2299dd',
],
'inject_morph_markers' => true,
'pagination_theme' => 'tailwind',
];
,This is the config file currently.
Want results from more Discord servers?
Add your server