获取ImageField字段定义中的upload_to值

root
abc abc
  • 20 Jul

field = Article._meta.get_field('articlephoto')
upload_to_path = field.upload_to