Modified logic for finding input[type=file] field ...