Fixed upload directory to an absolute path.