$config = array(new_name doesn't work, do you have solution?
'auto_process' => false,
'path' => DOCROOT.'assets/img/photo',
'max_size' => 1024000,
'overwrite' => true,
'new_name' => 'my_pic',
'auto_rename' => false,
'ext_whitelist' => array('img', 'jpg', 'jpeg', 'gif', 'png'),
);
Upload::process($config);
if(Upload::is_valid()){
Upload::save();
}
if($file_upload = Upload::get_files(0)){
$filename = $file_upload['saved_as'];
}
$errors = Upload::get_errors(0);
It looks like you're new here. If you want to get involved, click one of these buttons!