How to limit the format of django-rest-framework-api uploading(post method)

4 views
Skip to first unread message

Majid Am

unread,
Apr 30, 2018, 7:39:05 AM4/30/18
to Django users

In fact, I need your help to limit the my api to upload

I only need Jason and excel formats(csv,xls,xlsl) on the server-side, but I did not find any code for that.

The second question is, what methods should I use to authenticate the user?

Here's a link that i use it code in my api

I will thank you :)



my stack topic :https://stackoverflow.com/questions/50095233/how-to-limit-the-format-of-django-rest-framework-api-uploadingpost-method

Reply all
Reply to author
Forward
0 new messages