added client-side support for multiple file uploads