I would like to know how to find out which folder the user uploaded to the form?
For example, if the user uploaded to the X folder, if the file was inside the X folder, I'd like to execute the following code:
$upload = copy($arqTemp, $pasta . $nomePDF);
$pastaExcluir = "C:/Users/Administrador/Desktop/X/";
unlink($pastaExcluir . $arqName);
Or if it did a upload from outside the specific folder I simply use move_uploaded_file()
:
$upload = move_uploaded_file($arqTemp, $pasta . $pdfName);
So how will I find out which folder the file was sent to?