- From: Andres Rios <notifications@github.com>
- Date: Wed, 17 Aug 2016 01:13:46 -0700
- To: whatwg/xhr <xhr@noreply.github.com>
Received on Wednesday, 17 August 2016 08:14:19 UTC
Right. The [example 9](https://www.w3.org/TR/html-json-forms/) may give us an idea...
```html
EXAMPLE 9: Files
<form enctype='application/json'>
  <input type='file' name='file' multiple>
</form>
// assuming the user has selected two text files, produces:
{
    "file": [
        {
            "type": "text/plain",
            "name": "dahut.txt",
            "body": "REFBQUFBQUFIVVVVVVVVVVVVVCEhIQo="
        },
        {
            "type": "text/plain",
            "name": "litany.txt",
            "body": "SSBtdXN0IG5vdCBmZWFyLlxuRmVhciBpcyB0aGUgbWluZC1raWxsZXIuCg=="
        }
    ]
}
```
However, it's desirable to see if [JSON standard](http://jsonapi.org/format/) defines the behavior for uploading files. I couldn't find anything that cares about file uploading.
-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/84#issuecomment-240343859
Received on Wednesday, 17 August 2016 08:14:19 UTC