Add many attachments without deleting previous ones using ActiveStorage
DRANK
If you want to add many attachments to a record using just a file field, but you don’t want to remove the previous images from the record on every update, like in the following code: