Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- await RNFS.readFile(response.path, 'base64').then(data => {
- fetch('http://92.248.178.250:3000/avatar.php', {
- method: 'POST',
- headers: {
- 'Content-Type': 'multipart/form-data; boundary=RaNdOmDeLiMiTeR'
- },
- 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--'
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement