Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. session.upload_progress.enabled = on
  2. session.upload_progress.prefix = "upload_progress_"
  3. session.upload_progress.name = "blabla"
  4.  
  5. <form action="upload.php" method="POST" enctype="multipart/form-data">
  6. <input type="hidden" name="<?php echo ini_get("session.upload_progress.name"); ?>" value="blabla" />
  7. <input type="file" name="file1" />
  8. <input type="file" name="file2" />
  9. <input type="submit" />
  10. </form>
  11.  
  12. <?php
  13. $_SESSION["upload_progress_blabla"] = array(
  14. "start_time" => 1234567890, // The request time
  15. "content_length" => 57343257, // POST content length
  16. "bytes_processed" => 453489, // Amount of bytes received and processed
  17. "done" => false, // true when the POST handler has finished, successfully or not
  18. "files" => array(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement