Skip to content

Instantly share code, notes, and snippets.

@csorlandi
Created April 19, 2020 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csorlandi/99b06ba94d36f986a3212dfffcfd02f9 to your computer and use it in GitHub Desktop.
Save csorlandi/99b06ba94d36f986a3212dfffcfd02f9 to your computer and use it in GitHub Desktop.
const imagesData = new FormData();
images.forEach((image, index) => {
imagesData.append('image', {
uri: image.uri,
type: 'image/jpeg',
name: `${newRealtyResponse.data.title}_${index}.jpg`
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment