简单解决新浪SAE无法上传文件的问题_PHP

WBOY
Release: 2016-06-01 14:35:21
Original
1124 people have browsed it

今天给网站后台增加一个上传文件的功能,结果出现BUG,提示未选择上传文件。

以下是代码部分。

<form method="post" action="attached.php&#63;action=upload_post" enctype="multipart/form-data">
 <table width="100%" cellspacing="0" cellpadding="0" border="0">
 <tr>
  <td><input type="file" name="attaFile" id="attaFile" />
 </tr>
 <tr>
  <td valign="bottom" height="50"><button type="submit" id="attaBtn">确定</button></td>
 </tr>
 </table>
</form>

Copy after login

检查半天感觉代码也没有问题啊,怀着试试看态度把 name="attaFile" 改成 name="attafile" 就是大写F改成小写,结果上传成功了。

就这个问题浪费了半天时间,我也是醉了,不知道是SAE的问题,还是所有服务器都这样。

以上所述就是本文的全部内容了,希望大家能够喜欢。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template