Hello and good day everyone! I am currently trying to figure out how to use a files variable like this:
$file = $_FILES['imgCompany']['tmp_name'];
and use it in a javascript function:
function someFunction() {
var file = "<?php echo $file; ?>"; //just an assumption, but does not work of course
}
Thank you! any help will be appreciated