search

Home  >  Q&A  >  body text

How to store the new file name in the database after uploading the file in Thinkphp6!

新文件名称为 $saveName
我也尝试在类里面定义一个属性性 public $name 通过来获取这个$saveName,但是放到属性里面都无法获取 NULL

QQ图片20211127104530.png

A _ Q _i_A _ Q _i_1098 days ago973

reply all(1)I'll reply

  • autoload

    autoload2021-11-29 10:51:46

    $saveName I don’t know where you defined it? But the assignment is in the method, and the assignment can only be completed after the method is executed

    reply
    0
  • Cancelreply