We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meu back esta retornando 'TypeError: Cannot destructure property 'originalname' of 'req.file' as it is undefined'... e assim esta minha função.
` async function uploadImage() { const user_id = await AsyncStorage.getItem('@apidados:user_id')
const config = { headers: { 'Content-Type': 'multipart/form-data' } }; const data = new FormData() data.append("avatar", { uri: avatar.uri, type: avatar.type, }); await api.post(`/users/${user_id}/foto`, data,config );
} `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
meu back esta retornando 'TypeError: Cannot destructure property 'originalname' of 'req.file' as it is undefined'... e assim esta minha função.
`
async function uploadImage() {
const user_id = await AsyncStorage.getItem('@apidados:user_id')
}
`
The text was updated successfully, but these errors were encountered: