How do input type=”file” elements handle multiple file uploads, and what are security considerations?

<input type="file" multiple> allows users to upload multiple files. Security considerations include sanitizing filenames, setting size limits, and validating file types to prevent malicious uploads.

Example:

<input type="file" multiple>