I have File in Meteor Client side and I want to upload file on the third party server.
try {
const response = HTTP.post('http://localhost:8000/uploadFile', {
data: {
file:file
},
});
// console.log(response.content)
allPagesInImage = JSON.parse(response.content)
// console.log(allPagesInImage)
} catch (e) {
SystemLogger.error('Error using Api.ai ->', e);
}
I have created Http call for that and send file but it's not working proper and not able to get file on server side
How can i send file to server?
My Third party server is PHP.