I would like to know if it is possible (and how could I do) to create an upload system where whenever I upload a file, it goes to a different folder (always), and shows me he begat. Is it possible to do this?
Reason : I always generate PDF proposals that come with 10MB, so I would rather send it to the attached client, send the link for it to download the proposal. However, one client can not see the other's proposal, so I would always like to upload to a different folder.
The code I have based is this:
<?php
$pasta = "/pasta/onde/o/arquivo/sera/salvo";
$dest = $pasta."/".$file_name;
if(!move_uploaded_file($file, $dest)) {
echo "Não foi possível enviar o arquivo!";
} else {
echo "Arquivo enviado com sucesso!";
}
?>