this page submit the variable azienda to makedir.php, this page create a folder on ftp with the name in the variable. I create the session called "azienda" because I need to post this variable to the page upload.php.

and here we have the problem....the script make the upload of files but only in the root directory, it not recnognize the variable with the name of ftp directory... but if I specify the name of directory it work perfectly, for example if I change $cartella_up to "test1234" it work perfectly!

the file maintains the original name, for example if in my HD the name is image.jpg, after the upload in the ftp server it mantains the name image.png.Also it maintain the original size and if I open this in the server it is perfect.