question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

amp-form: support enctype=application/x-www-form-urlencoded for action-xhr

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
philkriecommented, Oct 3, 2019

+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

3reactions
caroqliucommented, Mar 27, 2020

@krdwan will be working on getting a fix for this soon 😃

Read more comments on GitHub >

github_iconTop 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 >
Bountysource
amp-form : support enctype=application/x-www-form-urlencoded for action-xhr.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found