Joomla custom Module File Form Field Type destination

181 views Asked by At

Basically i am making a custom joomla module that displays CSVs in the website. The CSV is uploaded by the administrator from the backend. In the xml file, i have this:

<field name="testfield" type="file" label="CSV file" description="Upload a CSV file to display" />

However, when i echo this field in the mod_csv.php:

$testfield      =$params->get( 'testfield' );
<?php echo($testfield)?>

It only displays the filename. Basically I want to know how to determine where this file is uploaded, so that I can retrieve the path of the CSV file uploaded. I have very poor php skills, and to create this module i just took another module and altered it to suit my needs.

Thank you!

0

There are 0 answers