Reputation: 1424
Similar to this question:
How to get value from form field in django framework?
Except the "value" field is a file. Is there a way to grab it directly? I called .value() on the field but it does not seem to be working.
Upvotes: 1
Views: 123
Reputation: 20780
FileField's are objects.
To access the file, simply call:
<file_field_instance>.file
Upvotes: 2