fixed wrong configuration of upload_dir, add example for upload_dir config