Update upload.php

changed 'getContents' to proper function name 'getDir'