def save_model(self, request, obj, form, change):
在这个处理程序中我可以获取上传文件的名称,但文件本身尚未上传,所以我无法对其进行任何操作,可以有办法强制django上传该文件在这个save_model
处理程序中?为了对它做一些操作
def save_model(self, request, obj, form, change):
obj.save()
super(FileAdmin, self).save_model(request, obj, form, change)
//here i am getting the file name its there, but the file itself is not uploaded