const data = new FormData();
data.append('photo', {
name: pic.fileName,
type: pic.type,
uri: Platform.OS === 'android' ? pic.uri : pic.uri.replace('file://', ''),
// data: pic.data,
});
this is the form data that i am sending to the backend. In the backend multer handles the image.
But i am getting the image data as below, that could not be used to store on the server folder