I have a FileField as part of my Formset, which when added to the ModelForm is displayed correctly and allows for file selection, but when saved, the file is not uploaded to the model. I think this is something todo with 'request.FILES' not existing in the View I'm just not sure how to rewrite it to include it.
Can anyone help?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks again for this.
I have a FileField as part of my Formset, which when added to the ModelForm is displayed correctly and allows for file selection, but when saved, the file is not uploaded to the model. I think this is something todo with 'request.FILES' not existing in the View I'm just not sure how to rewrite it to include it.
Can anyone help?