Skip to content Skip to sidebar Skip to footer

Error While Saving Image Using Django Rest Framework With Angularjs

I have two models Blogs, Photo. In Photo model I have fields 'blogs' as foreign key to Blogs model. models.py: def content_file_name(instance, filename): custt=str(datetime.now

Solution 1:

In js:

headers: { 'Content-Type': undefined}

This solves the problem.

Post a Comment for "Error While Saving Image Using Django Rest Framework With Angularjs"