upload.php 380 B

123456789
  1. <?php
  2. // The Demos don't save files
  3. if (isset($_FILES["resume_file"]) && is_uploaded_file($_FILES["resume_file"]["tmp_name"]) && $_FILES["resume_file"]["error"] == 0) {
  4. echo rand(1000000, 9999999); // Create a pretend file id, this might have come from a database.
  5. }
  6. exit(0); // If there was an error we don't return anything and the webpage will have to deal with it.
  7. ?>