Save photo automatic to directory (mdg:camera package)


#1

hi , how can i save photo automatic to directory (Example : D:/picture) when i click on button take photo ?
thank you for advance :slight_smile:

HTML:

<head>
<title>cameraApp</title>
</head>

<body>
 <h1>Welcome to Meteor!</h1>
 {{> hello}}
</body>

<template name="hello">
<button>Click Me</button>
<p>You've pressed the button {{counter}} times.</p>
</template>

JS:

if (Meteor.isClient) {
Template.body.helpers({
photo: function () {
return Session.get(“photo”);
}
});

Template.body.events({
‘click button’: function () {
var cameraOptions = {
width: 800,
height: 600
};

  MeteorCamera.getPicture(cameraOptions, function (error, data) {
    Session.set("photo", data);
  });
}

});
}