Advertisement
PlotnikovPhilipp

Untitled

Dec 2nd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. await RNFS.readFile(response.path, 'base64').then(data => {
  2.                     fetch('http://92.248.178.250:3000/avatar.php', {
  3.                         method: 'POST',
  4.                         headers: {
  5.                             'Content-Type': 'multipart/form-data; boundary=RaNdOmDeLiMiTeR'
  6.                         },
  7.                         body: '--RaNdOmDeLiMiTeR\r\nContent-Disposition: form-data; name="video"; filename="video.txt"\r\nContent-Type: text/plain\r\n\r\n' + data + '\r\n--RaNdOmDeLiMiTeR--'
  8.                     });
  9.                 });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement