Skip to content
Discussion options

You must be logged in to vote

Interesting question. I have explored that server actions use a text plain content type, and multipart/form-data, more over I found this bit in the React codebase:

          console.error(
            'Cannot specify a encType or method for a form that specifies a ' +
              'function as the action. React provides those automatically. ' +
              'They will get overridden.',
          );

So, specifying that, is not gonna do it. I also though of calling the server action manually, with URLSearchParams, but that goes the plain t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bestickley
Comment options

Answer selected by bestickley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants