From PHP documentation: php://input is not available in POST requests with enctype="multipart/form-data" if enable_post_data_reading option is enabled.