Good day! I just want to put the image captured on the specified folder, not on the database itself via ajax call. This is what I've done:
JS File:
$('#btn-save-snapshot').on('click', function() { Webcam.snap(function(data_uri) { $.ajax({ url: '/capture', type: 'POST', data: { captimage: data_uri }, success: function(data) { alert('Saved!'); }, error: function(xhr) { alert($.parseJSON(xhr.responseText)['error']['message']); } }); }); });
I don't know how to save it to a specified folder. I already used Input::file('captimage')->move($destination) on controller but it doesn't work.