nervgh/angular-file-upload — pull request #333 by jason-whitehead (2014-12-27 06:42:56+00:00)
Title: Added nvForm directive to retrieve form data from HTML elements

Any form elements (input, select and textarea) which are descendants of the element which the directive is attached to will be added to the additional formData submitted with the upload.

The directive can be specified in the same way as the others (using the uploader attribute)
```html

```
or you can supply the uploader instance directly to the directive
```html

```
When the directive is attached to a FileUploader, descendant form elements will be submitted with every upload request.

```html

```

Inputs can be attached at the item level also, where child form-elements will be submitted only with the particular item.

```html

```

Both of these uses can be combined to attach common form elements to all requests, while supplying individual data for each item.

```html

```

Additionally any form data which is specified directly in the FileUploader 'formData' option will be merged with the form element values for submission, allowing form data to be submitted without needing a form element.

The form data is merged in this order:
* FileUploader.formData
* FileUploader.getFormData()
* HTML elements (uploader/global level)
* FileUploader.FileItem.formData
* FileUploader.FileItem.getFormData()
* HTML elements (item level)

(not properly tested) A getFormData function which returns the formData definition can be specified in the FileUploader options.

I'm happy to document all this in the wiki (more clearly, this is pretty terrible sorry)