I am trying to upload a single or array of files and am not sure how to use the jinput with the array and filter. Tried multiple suggestions from here and documentation and cannot make it work for me.
// Get some data from the request
$file = JRequest::getVar('file', '', 'files', 'array');
$file_id = $this->input->get('file_id');
$folder = $this->input->getString('folder');
$filter = new JFilterInput();
$folder = $filter->clean($folder, 'path');
Appreciate any suggestions.