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.

0

1 Answer 1

2

FileField's are objects.

To access the file, simply call:

<file_field_instance>.file
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.