can an image be attached to active storage through params code example
Example 1: active storage photo attached method
current_user.photo.attached? # => true
Example 2: active storage has_many_attached
has_many_attached :photo
current_user.photo.attached? # => true
has_many_attached :photo