Hello , i found your old article on google. I had the same problem and now i got a success $dir = $_SERVER['DOCUMENT_ROOT']; $cfg['UploadDir']...
Separate names with a comma.