Upload a file with Android to Django web service

后端 未结 1 1982
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 10:47

I\'m working on an Android app that interfaces with a Django backend. I\'ve deployed the webservice using mod_wsgi, and have many web service calls that work and have been teste

1条回答
  •  醉话见心
    2021-02-06 11:15

    I figured out what I was doing wrong. After setting up django logging, I was able to see where it was crashing. It was crashing when I tried to retrieve the "server_id" variable. I ended up adding that variable to the multipart entity as a string body rather than setting it as a header.

    0 讨论(0)
提交回复
热议问题