If you are testing in Postman, make sure to set the request body type to binary and not to form-data or anything else.