Fix file upload when debug info has been disabled