How do I upload 'Photo file' to the server?

@expellee: here’s a complete solution. I didn’t realise that you had looked at reading the buffer, and didn’t find it all that useful.

What you need to do with the buffer object you get, is translate it to something like a string representation. A good way could be to turn it into base64 image data - that’s a simple string to transfer to a backend.

var FileSystem = require("FuseJS/FileSystem");
var Base64 = require("FuseJS/Base64");
// ...
function capturePhoto() {
	Camera.capturePhoto()
		.then(function (photo) {
			photo.save()
				.then(function(filePath) {
					console.log("Photo saved to: " + filePath);
					var arrayBuff = FileSystem.readBufferFromFileSync(filePath);
					var b64data = Base64.encodeBuffer(arrayBuff); // send this to the backend
					photo.release();
				})
				.catch(function(error) {
					console.log("Failed to save photo: " + error);
					photo.release();
				});
		})
		.catch(function (error) {
			console.log("Failed to capture photo: " + error);
		});
}