I am trying to create a custom module where I have created an asset uploader field. Images are getting uploaded with that field but not saved.
class Settings extends Model
{
// Public Properties
// =========================================================================
public $imageId = [];
// Returns the validation rules for attributes.
public function rules()
{
return [
[['imageId'], 'required'],
];
}
public function getimages()
{
return Craft::parseEnv(trim(Ig::getInstance()->getSettings()->imageId));
}
}