Fetch upload File corruption

curl host -F "[email protected]"

const formData = await request.formData()
const body = formData.get('file')
console.log(body)

// const body = request.body

const token = await getAccessToken()
const response = await fetch(url, {
method: 'PUT',
headers: {
Authorization: `Bearer ${token}`,
...request.headers
},
body: body
})
  • I compared the source file with the uploaded file

Sounds similar to this thread, Strange characters output on pages.

Are you still seeing the issue, @atcaoyufei?

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.