Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Uploading a PDF via PHP

Avatar

Former Community Member
I am getting time out errors using this PHP code and a HTTP Submit button. I have increased the time out in the PHP code to 120 seconds but it does not appear to make any difference. The PDF file size is 1.7 Meg.
<br />
<br /><?<br /?>
ini_set('max_execution_time', 120);
<br /> print_r("PDFupload.php\n");
<br /> $file = file_get_contents("php://input");
<br /> print_r($file);
<br />?&gt;
<br />
<br />What am I missing?
0 Replies