1

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.

Community
  • 1
  • 1
mk8efz
  • 1,374
  • 4
  • 20
  • 36

1 Answers1

2

FileField's are objects.

To access the file, simply call:

<file_field_instance>.file
Aaron Lelevier
  • 19,850
  • 11
  • 76
  • 111