This article mainly introduced a simple solution to the Sina SAE can not upload files, do not know whether Sina's bug or my personal problems, share to everyone.
Today to the Web site to add an upload file function, resulting in bugs, prompted not to choose to upload files.
Here is the code section.
?
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=" "><button type=" Submit "id=" ATTABTN "> OK </button></td> </tr> </table> </form> |
Check half a day feel code also no problem ah, with a try attitude to name= "Attafile" to Name= "Attafile" is the capital F changed to lowercase, the results uploaded successfully.
On this issue wasted half a day, I was also drunk, I do not know is the SAE problem, or all servers are like this.
The above mentioned is the entire content of this article, I hope you can enjoy.