Location: PHPKode > scripts > Advanced file upload and ajax upload > advanced-file-upload-and-ajax-upload/ajax/ajax/picture_add.php
<?php 
require_once ('../class/stnc_upload-ajax_class_v4.php');
$extension_types = array('jpg', 'gif', 'zip','png');
$Uploader = & new stnc_file_upload();
$Uploader->language = '../class/stnc_upload_class_lang/english.php';
$Uploader->picture_uploads (true, 'MB', '1');
$Uploader->file_upload( 'MB', '3');
$Uploader->  name_format (false,'ReportFile','st_','_nc');

$Uploader->uploader_set($_FILES['file'], '../uploads', $extension_types,true);
$Uploader->result_report();
 if ($Uploader->uploaded) //upload info // true or false    
 echo '|successful';
//echo $Uploader->uploaded_files[0];
?>
Return current item: Advanced file upload and ajax upload