nei commenti di move_uploaded_file() c'è la soluzione...


vediamo se la trovi...























scherzo!

It seems that move_uploaded_file use the GROUP permissions of the parent directory of the tmp file location, whereas a simple "copy" uses the group of the apache process. This could create a security nighmare if your tmp file location is owned by root:wheel
ciao ciao