Lea
Can't dispatch inside a Filament component in my blade
Hello, i'm trying to use $dispatch to download file, I'm using Spatie Media Library, with S3 as my disk.
My function download() simply doesn't run after I click the download button using @click="$dispatch('download-document')"
2 replies
I'm trying to add a download button in a extended Custom Field
Hello, I'm trying to add a download button for a media that use Spatie Media Library, I have the function, but i can't use it in my blade
when i use wire:click="download", it goes to the main page file, and i get an error because obviously, the function doesn't exists there, but in the Custom Field file
3 replies
acceptedFileTypes(['text/csv']) doesn't validate CSV with semicolons
I'm trying to use FileUpload, but the csv file only works if the delimeter is , (commas)
When I upload one with ; (semicolons) it doesn't validate
I kind of fix it adding text/plain, but I need to validate at least that the extensions ends with .csv, xls or xlsx
Anyone knows how?
->acceptedFileTypes(
[
'csv',
'text/csv',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-excel',
'application/vnd.oasis.opendocument.spreadsheet',
'text/plain'
]
)
4 replies