handle binary file upload, server side