fixing upload url. And made a change on the servers to make sure that the expected target directory exists