public static function file_uploaded($draftitemid) {
        $draftareafiles = file_get_drafarea_files($draftitemid);
        do {
            $draftareafile = array_shift($draftareafiles->list);
        } while ($draftareafile !== null && $draftareafile->filename == '.');
        if ($draftareafile === null) {
            return false;
        }
        return true;
    }
public static function file_uploaded($draftitemid) {
        $draftareafiles = file_get_drafarea_files($draftitemid);
        do {
            $draftareafile = array_shift($draftareafiles->list);
        } while ($draftareafile !== null && $draftareafile->filename == '.');
        if ($draftareafile === null) {
            return false;
        }
        return true;
    }
public static function file_uploaded ( $ draftitemid ) { $ draftareafiles = file_get_drafarea_files ( $ draftitemid ) ; do { $ draftareafile = array_shift ( $ draftareafiles -> list ) ; } while ( $ draftareafile !== null && $ draftareafile -> filename == '.' ) ; if ( $ draftareafile === null ) { return false ; } return true ; }
Checks to see if a file has been uploaded.

@param string $draftitemid The draft id
@return bool True if files exist, false if not.
Checks to see if a file has been uploaded .