how i use this package out of validator ?
hi . i have file manager and i want use event uploaded file , in bellow code after file uploaded i want scan it with calmAv
please help me thank you
\Event::listen('Alexusmai\LaravelFileManager\Events\FilesUploaded',
function ($event) {
\Log::info('FilesUploaded:', [
$event->disk(),
$event->path(),
$event->files(),
$event->overwrite(),
]);
}
);
top code return
[2021-07-21 15:02:43] local.INFO: FilesUploading: ["public","",[{"name":"WhatsApp Image 2021-07-06 at 19.22.59 (1).jpeg","path":"/WhatsApp Image 2021-07-06 at 19.22.59 (1).jpeg","extension":"jpg"}],false]
i have disk and path , then i can get full path of file , now i need to validate path of file with calmav-validator
i this you need split 3 method in another class then we can use validateFileWithClamAv method in other purpose
protected function validateFileWithClamAv($value)
protected function getClamavSocket()
protected function createQuahogScannerClient($socket)
@vahidalvandi were you able to achieve this? Can you please help me with this? I want to pass the path of a local file and validate the file with clamav.
Any updates on this? We also want to validate file stored in local folder (not a request)
Any Update on this ?