How do link a file user uploaded to Database?

后端 未结 0 530
自闭症患者
自闭症患者 2021-01-16 12:09

This is how I was saving user uploaded Files:

f = request.FILES[x]
s = File(file=f, user=curUser)
s.save()

This worked great but it took a lo

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