NEURALNG

ACCESSIBILITY

FileUpload accessibility

A real hidden file input and real visible buttons preserve browser semantics while the dropzone remains a drag target rather than a fake control.

Native semantics

The native input retains accept, multiple, capture, name and FileList selection. The choose button targets it through aria-controls.

Names and status

Use Field composition, ariaLabel or ariaLabelledBy. Selection summaries and localized rejection messages are announced through a polite status region.

Keyboard behavior

Choose, remove and clear are native buttons, preserving Tab, Enter and Space. Focus returns to normal document order; drag-and-drop is never the only input path.

Security boundary

Browser MIME metadata and client limits are untrusted hints. Validate filename, size, content and authorization again on the server; never execute or preview untrusted files without a separate safe policy.