Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header('Cache-Control: no-store, no-cache, must-revalidate');
- header('Cache-Control: post-check=0, pre-check=0', FALSE);
- header('Pragma: no-cache');
- if(isset($_GET['uniqueID'])){
- $progress = apc_fetch('upload_' . $_GET['uniqueID']);
- echo round($progress['current']/$progress['total']*100);
- } else {
- die('no id');
- }
- $filepath = "tmp/";
- $filepath = $filepath . basename( $_FILES['myfile']['name']);
- move_uploaded_file($_FILES['myfile']['tmp_name'], $filepath);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement