verifyOpenUpload and openUpload can be merged