简单解决新浪SAE无法上传文件的问题,新浪sae无法上传文件
今天给网站后台增加一个上传文件的功能,结果出现BUG,提示未选择上传文件。
以下是代码部分。
1 2 3 4 5 6 7 8 9 10 | <form method= "post" action= "attached.php?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>
|
Copier après la connexion
检查半天感觉代码也没有问题啊,怀着试试看态度把 name="attaFile" 改成 name="attafile" 就是大写F改成小写,结果上传成功了。
就这个问题浪费了半天时间,我也是醉了,不知道是SAE的问题,还是所有服务器都这样。
以上所述就是本文的全部内容了,希望大家能够喜欢。
http://www.bkjia.com/PHPjc/998804.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/998804.htmlTechArticle简单解决新浪SAE无法上传文件的问题,新浪sae无法上传文件 今天给网站后台增加一个上传文件的功能,结果出现BUG,提示未选择上传文件。...