debug for file upload