remove debug code for file upload