Solve the problem that Sina SAE cannot upload files
This article mainly introduces how to solve the problem that Sina SAE cannot upload files. I don't know whether it is a Sina BUG or my own problem. Let's share it with you.
Today, a file upload function is added to the website background. a bug occurs in the result, prompting you Not to upload the file.
The following 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 = "50"> <button type = "submit" id = "attaBtn"> OK </button> </td> </Tr> </Table> </Form> |
After checking for half a day, I felt that the code was okay. I tried to change name = "attaFile" to name = "attafile", that is, I changed F to lowercase, and the result was uploaded successfully.
This problem is a waste of half a day. I am also drunk. I don't know if it is an SAE problem or all servers.
The above is all the content of this article. I hope you will like it.