amp-form: support enctype=application/x-www-form-urlencoded for action-xhr
See original GitHub issueWhen using amp-form with method="POST
" and action-xhr
the resulting request is multipart/form-data
binary. I tried setting enctype
to application/x-www-form-urlencoded
but it was ignored.
Is this by design? If so I do not see it documented.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
amp form post action-xhr post data - Stack Overflow
gonder.asp > adSoyad = request.form("adSoyad") not working? response.write(adSoyad) is null? how can I print the incoming data. screenshot enter ...
Read more >amp-form - Gitee
The amp-form element exposes the following actions. submit. Allows you to trigger the form submission on a specific action, for example, tapping a...
Read more >How Form Encoding Works - Formcake
application /x-www-form-urlencoded. This type represents a URL encoded form and is the default value if the enctype attribute is not set.
Read more >How to change enctype on WPForms? - WordPress.org
We currently have enctype=multipart/form-data but we either need to change it to no enctype or to enctype=application/x-www-form-urlencoded.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1, at the very least the documentation should be updated ASAP to specify that 1. not all form attributes are supported, and 2. enctype specifically is not configurable. This will save a lot of headache
@krdwan will be working on getting a fix for this soon 😃