I have a view and serializer:
class UserView(generics.RetrieveUpdateAPIView): model = get_user_model() serializer_class = UserProfileSerializer p
Ok, I can't exactly explain why, but it seems like var formData = new FormData($(this)); is not enough alone, it needs to be explicitly appended, because reasons? If anyone can explain, please do.
var formData = new FormData($(this));
The working code: