You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
411 B

8 years ago
  1. <?php
  2. /*
  3. Uploadify
  4. Copyright (c) 2012 Reactive Apps, Ronnie Garcia
  5. Released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
  6. */
  7. // Define a destination
  8. $targetFolder = '/uploads'; // Relative to the root and should match the upload folder in the uploader script
  9. if (file_exists($_SERVER['DOCUMENT_ROOT'] . $targetFolder . '/' . $_POST['filename'])) {
  10. echo 1;
  11. } else {
  12. echo 0;
  13. }
  14. ?>