On Tue, Dec 9, 2014 at 6:29 AM, Yusuke block.rxckin.be...@gmail.com wrote:
if form has value of type=file, I expect multipart.
and also if form have value of type=text only, I expect urlencoded.
That is not how form works. form defaults to urlencoded and you
can opt into multipart through an
Anne
OK I understand what this means.
I'm looking forward to implement URLSearchParams in all browsers.
thanks !
Jxck
2014-12-09 17:05 GMT+09:00 Anne van Kesteren ann...@annevk.nl:
On Tue, Dec 9, 2014 at 6:29 AM, Yusuke block.rxckin.be...@gmail.com
wrote:
if form has value of type=file, I
On Sat, Dec 6, 2014 at 9:33 PM, block.rxckin.be...@gmail.com
block.rxckin.be...@gmail.com wrote:
but I wanna send string key/values in x-www-form-urlencoded format.
Use URLSearchParams instead. FormData and ...-urlencoded are a bad
match due to Blob.
because it's more standard way for web.
in form submit
```
form id=myform method=post name=myform action=/server
input type=number name=id value=123456
input type=text name=username value=jxck
input type=submit
/form
```
sends
```
username=jxckid=123456
```
in xhr with form data from same form
```
script
var myform =
From: whatwg [mailto:whatwg-boun...@lists.whatwg.org] On Behalf Of
block.rxckin.be...@gmail.com
What is the motivation to not support except multipart format in FormData ?
Anne already answered you, but I'll re-state his answer as a question:
What do you expect the browser to do if your form
On 12/8/14, Domenic Denicola d...@domenic.me wrote:
From: whatwg [mailto:whatwg-boun...@lists.whatwg.org] On Behalf Of
block.rxckin.be...@gmail.com
What is the motivation to not support except multipart format in
FormData ?
Anne already answered you, but I'll re-state his answer as a
From: Garrett Smith [mailto:dhtmlkitc...@gmail.com]
I would expect the filename to be sent as the value.
Blobs don't have filenames.
On 12/8/14, Domenic Denicola d...@domenic.me wrote:
From: Garrett Smith [mailto:dhtmlkitc...@gmail.com]
I would expect the filename to be sent as the value.
Blobs don't have filenames.
You asked about a file input and you got an answer with a link to the
pertinent spec. Now you are
Domenic
Anne already answered you, but I'll re-state his answer as a question:
I don't think so.
I'm agree with urlencode dosen't fit with Blob. but completely fit with text.
my question is not
why don't use urlencode for Blob
but
why don't use urlencode for text only form
What do you
Hi all.
Sending FormData object with XHR, data serialized in multipart.
in sending file case fit with this interface.
but I wanna send string key/values in x-www-form-urlencoded format.
because it's more standard way for web.
```
var form = new FormData();
form.append('key1', 'value1');
10 matches
Mail list logo