Skip to content

Commit

Permalink
docs: fix formdata code example (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed May 27, 2022
1 parent 6ae9c76 commit 0f122b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -428,7 +428,7 @@ import fetch, { FormData, File, fileFrom } from 'node-fetch'
const httpbin = 'https://httpbin.org/post'
const formData = new FormData()
const binary = new Uint8Array([ 97, 98, 99 ])
const abc = new File([binary], 'abc.txt'), { type: 'text/plain' })
const abc = new File([binary], 'abc.txt', { type: 'text/plain' })

formData.set('greeting', 'Hello, world!')
formData.set('file-upload', abc, 'new name.txt')
Expand Down

0 comments on commit 0f122b8

Please sign in to comment.