const url = 'https://api.you.com/upload';
fetch(url, {
method: 'POST',
body: JSON.stringify({
email: 'uyencan89@gmail.com',
fileName: 'my-file.txt',
fileData: 'base64encoded-content-of-my-file.txt'
}),
headers: {
'Content-Type': 'application/json'
}
});