I suggest redefining the form
class UploadFileForm(forms.Form):
title = forms.CharField(max_length=50)
file2 = forms.FileField()
MAX_FILE_SIZE = forms.CharField(widget=forms.HiddenInput(), initial = 10000)
and in template upload.html you tried this?
<form action="#" enctype="multipart/form-data" method="POST">
<label> Title </label> {{ form.title }} <br>
<label>Choose a file to upload:</label> {{ form.file2 }} <br>
{{ form.MAX_FILE_SIZE }} <!-- hidden -->
<input type="submit" value="Upload File"/>
</form>