#458 - allow user to set formenctype#459
Conversation
lovasoa
left a comment
There was a problem hiding this comment.
Good. Can we document this behavior somewhere? Maybe in one of the examples of the form component?
|
@lovasoa will do. Still testing it. I had some trouble with applying it to the textarea input directly. Seems adding it to the submit button works. I want to make sure this works with also a file input present as they would both trigger adding the attribute to the submit button... |
|
Okay, good! Switching this pr to draft mode, then. |
|
@lovasoa after reading the following:
I decided to expose the Further, I would suggest we remove the
For now I updated the docs recommending to set it explicitly for file upload rather than rely on current behaviour. I also added an example of setting different We can decide whether to alter existing behaviour independently of this PR |
|
I understand what you mean. But the whole promise of SQLPage is to make it easy to build UIs on top of databases without any other knowledge than just sql. I really think file upload should work by default, and not require even knowing what formenctype means. |
Revert accidental change
|
For reference - here is proposed changes that I think will make the handling of form encoding to work intuitively whilst still allowing flexability for developer to set specific encoding |
lovasoa
left a comment
There was a problem hiding this comment.
Ok, let's merge it like this at the moment, I'll update it later. Thanks for the contribution!
|
No problem. Thanks for SQLpage making UI easy. Sorry I couldn't catch the vision on this one. It's hard to see the forrest through the trees sometimes. |
Closes #458