(Swift) upload Image to backend (Django Rest Framework) not working and Worked in (Postman) & (Admin Page)

Trying to Upload Image From Swift APP to Django backend with (DRF and Pillow ) models.py class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) bio = models.CharField(max_length=300, blank=True) user_img = models.ImageField(upload_to=’images/’, blank=True, null= True) def __str__(self): return self.user.username url.py from django.urls import path from . import views urlpatterns = [ path(‘user’, views.PUser.as_view()), ] view.py class PUser(APIView): def […]

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us