diff --git a/frappe/public/js/frappe/ui/capture.js b/frappe/public/js/frappe/ui/capture.js index aeca245857..9161f02f40 100644 --- a/frappe/public/js/frappe/ui/capture.js +++ b/frappe/public/js/frappe/ui/capture.js @@ -30,6 +30,7 @@ function get_file_input() { input.setAttribute("type", "file"); input.setAttribute("accept", "image/*"); input.setAttribute("multiple", ""); + input.setAttribute("capture", ""); // Make sure that the input exists in the DOM input.classList.add("visually-hidden");