// Custom configuration for this uploadHowever, I’d now like to loop through multiple images.
$config = array(
'path' => DOCROOT.DS.'images',
'randomize' => true,
'ext_whitelist' => array('img', 'jpg', 'jpeg', 'gif', 'png'),
);
Upload::process($config);
if (Upload::is_valid())
{
Upload::save();
$value = Upload::get_files();
$article->filename = $value[0]['saved_as'];
}
if (Upload::is_valid())
{
Upload::save();
$value = Upload::get_files();
$article->filename = $value[0]['saved_as'];
}
?
It looks like you're new here. If you want to get involved, click one of these buttons!