PHP Classes

File: uploads/uploadify/check-exists.php

Recommend this page to a friend!
  Classes of Minh Tien   Noblesse CMS   uploads/uploadify/check-exists.php   Download  
File: uploads/uploadify/check-exists.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Noblesse CMS
Content management system with custom plugins
Author: By
Last change:
Date: 9 years ago
Size: 411 bytes
 

Contents

Class file image Download
<?php
/*
Uploadify
Copyright (c) 2012 Reactive Apps, Ronnie Garcia
Released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/

// Define a destination
$targetFolder = '/uploads'; // Relative to the root and should match the upload folder in the uploader script

if (file_exists($_SERVER['DOCUMENT_ROOT'] . $targetFolder . '/' . $_POST['filename'])) {
    echo
1;
} else {
    echo
0;
}
?>