Forums | Mahara Community

Support /
Portfolio Import ClamAV


Tobias Nusser's profile picture
Posts: 5

14 June 2022, 22:34

Hi,

when trying to import portfolios and the virus checking via clamscan is activated, the upload fails.
The following error message is issued: mahara_clam_scan_file: not called correctly, read phpdoc for this function

The uploadmanager.php evaluates the following:

 if (is_array($file) && is_uploaded_file($tmpname)) { // it's from $_FILES
        $fullpath = $tmpname;
    }
    else if (file_exists($file)) {
        $fullpath = $file;
    }
    else {
        throw new SystemException('mahara_clam_scan_file: not called correctly, read phpdoc for this function');
    }


$tmpname stores a temporarily generated filepath (/tmp/phpwAoj8b) however I cannot find the location where it is supposed to be.

Mahara Version is  22.04.1

Kind regards Tobias

Kristina Hoeppner's profile picture
Posts: 4866

26 January 2023, 15:16

There is now a bug report for it, just to join the dots.

2 results