How to validate an array of strings for the upload files in Phoenix LiveView

Thank you for the reply and explanation for your method! Unfortunately I’m also a beginner so I’m waiting for a reply about “best practices” to your comment in my other form post regarding this.