TypeError: cannot use a string pattern on a bytes-like object — mimetypes.guess_type

前端 未结 0 1076
夕颜
夕颜 2020-12-11 05:58

I am trying to detect the mimetype of a file stored in a mongodb database using pathfs. I am using "mimetypes" to do this, I try to pass the file as bytes but get

相关标签:
回答
  • 消灭零回复
提交回复
热议问题