views:
template:
#############################3
<html>
<head>
<title>Upload File</title>
</head>
<body>
{% if error %}
<p style="color: red;">
There are something error.
</p>
{% endif %}
{% if up %}
<p>Welcome to UPLOAD FILE SYSTEM.</p>
{% endif %}
<form enctype="multipart/form-data" action="" method="post">
upload file: <input type="file" name="file" maxlength=100 />
<input type="submit" value="Upload" />
</form>
</body>
</html>
##############################