Add notes
This commit is contained in:
parent
0879b52720
commit
b1e5c5f94c
1 changed files with 2 additions and 0 deletions
|
@ -85,8 +85,10 @@ export function Admin({ users, todos }: Props) {
|
|||
<form
|
||||
class='p-4 gap-4 flex flex-col'
|
||||
action='/api/user'
|
||||
// TODO:
|
||||
// Form contains enctype=multipart/form-data, but does not contain method=post.
|
||||
// Submitting normally with method=GET and no enctype instead.
|
||||
// possible workaround? https://stackoverflow.com/questions/50691938/patch-and-put-request-does-not-working-with-form-data
|
||||
method='put'
|
||||
encType='multipart/form-data'
|
||||
onSubmit={() => console.log('Submitting edit user...')}
|
||||
|
|
Loading…
Reference in a new issue