DocRampage
How to get the number of files in a multiple FileUpload field?
How do i get the number of files uploaded in the file upload field in the afterStateUpdated function? The problem is, the StateUpdated command is run for every file. Each time one file is added to the $state variable. So if you upload 3 files, in the first run there is only one file and in the last run there are all 3. But i need to know the number of files already in the first run.
2 replies
No resources available on production server
Ive deployed my app to the production server, i can login but none of my resources are visible in the navigation.
I can see the navigation groups though. Im using spatie/permission and filament shield. Im logged in as a super_admin. All permission seem to be correct in the database, also implemented FilamentUser to the user role.
It might have todo something with file permission but im not sure. When trying to run php artisan cache:clear
im getting the error: Failed to clear cache. Make sure you have the appropriate permissions.
Already made all files and folders 777 for testing purpose.
Any help for debugging this would be helpful. Like if there is a possibility to disable all spatie permissions.
2 replies
FileUpload with PDF preview.
Hi,
im using spatie media file uploads and the spatie pdf-to-image package.
But when im uploading a PDF there is no preview shown, even if the thumbnail gets generated.
Regular images are shown as previews.
Is this expacted behavior? Or am im missing something. And if so, is there a way to show a thumb preview of the PDF, either with spatie or the regular fileupload?
4 replies