Update php_upload/upload.php
This commit is contained in:
@@ -7,6 +7,20 @@
|
||||
</head>
|
||||
<body>
|
||||
<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">
|
||||
Select file to upload:
|
||||
<input type="file" name="fileToUpload" id="fileToUpload">
|
||||
|
||||
Reference in New Issue
Block a user