[Answered ]-Upload_to doesn't work when updating user profile?

2👍

Add request.FILES to the form:

update_profile_form = UpdateProfileForm(request.POST, request.FILES,
                                        instance=request.user)

By default django doesn’t includes files in request.POST

Also, I think instance for UserProfile model should be request.user.profile instead of request.user or am I missing something here?

Follow instructions from django-docs

👤v1k45

Leave a comment