<?php
require_once ('../stnc_upload_class_v4.php');
if ($_FILES) {
echo '<div id="reports">';
$extension_types = array('jpg', 'gif','png');
$Uploader = & new stnc_file_upload();
$Uploader->language = '../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 '<br>successful';
/* for ($i = 0; $i < count($Uploader->uploaded_files); $i++) {
echo '<br>'.$Uploader->uploaded_files[$i];
}
*/
echo '</div>';
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9">
</head>
<form method="post" id="file_upload_form" action="" enctype="multipart/form-data" content="text/html; charset=utf-8">
<table width="419" height="29" border="0">
<tr>
<th colspan="2" scope="col" >
file add
</th>
</tr>
<?php
$max_no_img = 4;
for ($i = 1; $i <= $max_no_img; $i++) {
?>
<tr >
<td width="96">
file <?php echo $i?>
</td>
<td width="447">
<input type="file" id="picture_<?php echo $i?>" size="%50" name="file[]" />
</td>
<?php } ?>
</tr>
</table>
<input class="submit" type="submit" name="submit" value="Save">
</form>
</body></html>