thefile = request.FILES.get("uploaded_file","")
现在,如何将其转换为文本字符串?
最佳答案
您应该能够阅读它。
thefile.read()
关于python - 在Django中,当有人上传文本文件时,如何将其转换为字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4856527/
thefile = request.FILES.get("uploaded_file","")
现在,如何将其转换为文本字符串?
最佳答案
您应该能够阅读它。
thefile.read()
关于python - 在Django中,当有人上传文本文件时,如何将其转换为字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4856527/