Custom Module - Subform get file type

by herotrovao   Last Updated April 19, 2018 15:10 PM

Sorry the English. I have a subform, xml:

<fields name="params">
    <fieldset name="basic">
        <field name= "sliders"
               description= ""
               type= "subform"
               label= "Sliders"
               min= "0"
               max= "8"
               required= "true"
               formsource= "modules/mod_teste/models/forms/form-default.xml"
               multiple= "true"
               buttons= "add,remove,move"

my form-default.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <form name="uploadsub" enctype="multipart/form-data">

 <field name="arquivo" type="file"  label="Slider" description="Arquivo pdf"/>

  <field name="titulo" type="textarea" default="" label="Titulo" description="" />
    <field name="descricao" type="textarea" default="" label="Descrição Slider" description="" />


my default.php:

$sliders = $params->get('sliders');
$aux = 0;
foreach ($sliders as $item) {

    $slideritems->$aux->arquivo = $item->arquivo;
    $slideritems->$aux->titulo = $item->titulo;
    $slideritems->$aux->descricao = $item->descricao;
    $slideritems->$aux->link = $item->link;
    $slideritems->$aux->target_blank = $item->target_blank;


Is it possible to get files? Note: I only get pictures(type="media").

Related Questions

How to get article id on BT CONTENT SLIDER?

Updated November 13, 2017 14:10 PM

Joomla 3 Module Save Event

Updated August 21, 2015 17:04 PM