<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>文件上传</title>
</head>
<body>
	<?php 
	if($error){	echo $error;}
	?>

	<form action="<?php echo site_url('upload_demo/upload')?>" method="post" enctype="multipart/form-data">
		<input type="file" name="pic" /></br>
		<input type="file" name="pic2" /></br>
		<input type="submit" name="上传" />
	</form>
	
	<?php if ($upload_data):?>
		<?php foreach ($upload_data as $item => $value):?>
			<li><?php echo $item;?>: <?php echo $value;?></li>
		<?php endforeach; ?>
	<?php endif ?>
</body>
</html>
