In development, file uploading is essential. is a commonly used upload tag, but it is ugly and cannot be changed. We usually use Hide, when you click on other tags (pictures, etc.), you can select the file upload function. Look at the code:
But in Firefox and some higher version browsers The files to be uploaded can be obtained in the background of the browser. Some lower version browsers cannot obtain Request.Files at all. Check the information. Some people say that it should be changed to this:
A return keyword has been added, which improves the compatibility a lot, but some browsers are still difficult to use. We found that we can definitely get the file to be uploaded by manually clicking in the background So we can transparently Modify the code as follows:
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