Fix upload file view behavior to match API