With the following model and template:

==========MODEL========
videoFile = models.FileField (upload_to='videoupload', blank=True)
========================

==========TEMPLATE=====
<form method="post" action="." enctype="multipart/form-data">
    <label for="id_videoFile">Video File:</label>
    {{form.videoFile}} {{form.videoFile_file}}
    <input type="submit" value="Submit"/>
</form>
========================

The HTML output renders {{form.videoFile}} {{form.videoFile_file}} as
type="hidden" instead of type="file".

==========HTML==========
<label for="id_videoFile">Video File:</label> <br/>
<input type="hidden" id="id_videoFile" name="videoFile" value="" />
========================

This seems quite basic, but still, I'm missing something. What could be
the problem?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to