[Fixed]-Django getting the absolute path of a FileField

15👍

The Django File object provides several convenience functions/attributes, one of which is the URL associated with the file. In this case, as you pointed out, you’re looking for the url attribute.

👤jds

10👍

Just found the answer:
adding .url fixes this issue fixes it
such as {{fl.uploadedfile.url}}

Leave a comment