0
在我的index.php文件中,我得到的代码是跟踪$ _FILE,但是当上传一个pic/jpeg/images文件时,返回的结果是'array(0) {}'。我是否需要使用smarty的方法来分配输入文件的方法?Smarty上传一个带有普通输入文件的文件
var_dump($_FILES);
我photoupload.tpl
<form action="index.php?view=photoupload" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file">
<input class="btn_name" type="submit" name="submit" value="Submit">
</form>