上传功能,在TP需要添加一个属性在表单:
enctype="multipart/form-data"
<form action="__URL__/upload" enctype="multipart/form-data" method="post" > <input type="text" name="name" /> <input type="file" name="photo" /> <input type="submit" value="提交" > </form>
上传功能,在TP需要添加一个属性在表单:
enctype="multipart/form-data"
<form action="__URL__/upload" enctype="multipart/form-data" method="post" > <input type="text" name="name" /> <input type="file" name="photo" /> <input type="submit" value="提交" > </form>