Add debug for file upload