Modify binary file upload method