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,244
  • 4
  • 18
  • 35

1 Answers1

2

FileField's are objects.

To access the file, simply call:

<file_field_instance>.file
Aaron Lelevier
  • 18,600
  • 11
  • 68
  • 105