7 ms·
I don't agree with Example 9, we should use data uri scheme for file content "files": [{ "name": "dahut.txt", "src": "data:text/plain;base64,RE
by luikore 12y ago
I don't agree with Example 9, we should use data uri scheme for file content
"files": [{
"name": "dahut.txt",
"src": "data:text/plain;base64,REFBQUFBQUFIVVVVVVVVVVVVVCEhIQo="
}]
http://en.wikipedia.org/wiki/Data_URI_scheme http://en.wikipedia.org/wiki/Data_URI_scheme
- theandrewbailey 12y ago1. Other form encoding types have discrete MIME type fields. 2. While data URIs are awesome, it forces you to process that URI in some way (parse, regex, whatever) just to get the MIME type. Also, this forces 13 bytes of redundancy every time.