-
I want to upload a file to my server, there are two ways: |
Beta Was this translation helpful? Give feedback.
Answered by
MrLeebo
Apr 25, 2021
Replies: 1 comment
-
For a file upload you would use an API route (or getServerSideProps). Mutations can only send and receive JSON as the content type, but you probably want to upload the file using multipart form data instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zwl1619
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a file upload you would use an API route (or getServerSideProps). Mutations can only send and receive JSON as the content type, but you probably want to upload the file using multipart form data instead.