<?php
session_start();
if($_SERVER['REQUEST_METHOD']=='POST'){
print_r($_SESSION);
}
?>
<!DOCTYPE html>
<html>
<head></head>
<body>
<div class="min">
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="POST" enctype="multipart/form-data">
<input type="hidden" name="<?php echo ini_get("session.upload_progress.name"); ?>" value="123" />
<input type="file" name="file1" />
<input type="submit" />
</form>
</div>
</body>
</html>
Hi Above is my HTML and PHP code and I want to be able to track upload progression. Above code does not work because session does not update. Can anybody help me with this? any help will be appreciated.
Top comments (0)