Add a debug option to allow troubleshooting upload issues