Update php_upload/upload.php

This commit is contained in:
2024-07-04 17:08:12 +01:00
parent 2a9e9a46dd
commit 62fd176228
+14
View File
@@ -7,6 +7,20 @@
</head> </head>
<body> <body>
<h2>Upload a Large File</h2> <h2>Upload a Large File</h2>
<?php
// Get configuration limits
$upload_max_filesize = ini_get('upload_max_filesize');
$post_max_size = ini_get('post_max_size');
$max_execution_time = ini_get('max_execution_time');
$memory_limit = ini_get('memory_limit');
?>
<p><strong>Maximum Upload Size:</strong> <?php echo $upload_max_filesize; ?></p>
<p><strong>Maximum POST Size:</strong> <?php echo $post_max_size; ?></p>
<p><strong>Maximum Execution Time:</strong> <?php echo $max_execution_time; ?> seconds</p>
<p><strong>Memory Limit:</strong> <?php echo $memory_limit; ?></p>
<form action="test_upload.php" method="post" enctype="multipart/form-data"> <form action="test_upload.php" method="post" enctype="multipart/form-data">
Select file to upload: Select file to upload:
<input type="file" name="fileToUpload" id="fileToUpload"> <input type="file" name="fileToUpload" id="fileToUpload">