submit pdf to php server challenge
I wish to submit the entire PDF form to a PHP server in Adobe Acrobat. The server-side code is provided below. The PDF file can be saved in the server folder, but Adobe Acrobat throws the error as shown in the screenshot.
Seeking advice from experts on how to simply echo "submit successful!" or perhaps, since the transmission is already functioning, at least silence this error?
CODE:
<?php
header('Content-Type: application/pdf; charset=UTF-8');
header('Content-disposition: inline');
$data = file_get_contents('php://input');
$timestamp = time();
$randomNumber = mt_rand(1000, 9999);
$save = file_put_contents('C:\\test\\' . $timestamp . $randomNumber .'test_.pdf', $data);
?>
BUG ALERT:

