Bulk Select provides both a Form API Element and a Field API Widget with nested checkboxes. If you need a select element with the following features...
Adds an option to filefields and filefield widget settings to automatically extract the first managed file from the rendered content with an extension allowed in the field settings.