Add notes

This commit is contained in:
Daniel Flanagan 2024-01-07 16:22:39 -06:00
parent 0879b52720
commit b1e5c5f94c
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -85,8 +85,10 @@ export function Admin({ users, todos }: Props) {
<form <form
class='p-4 gap-4 flex flex-col' class='p-4 gap-4 flex flex-col'
action='/api/user' action='/api/user'
// TODO:
// Form contains enctype=multipart/form-data, but does not contain method=post. // Form contains enctype=multipart/form-data, but does not contain method=post.
// Submitting normally with method=GET and no enctype instead. // 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' method='put'
encType='multipart/form-data' encType='multipart/form-data'
onSubmit={() => console.log('Submitting edit user...')} onSubmit={() => console.log('Submitting edit user...')}