Today in the development of the "Security Error" code: "1000" error, some inexplicable, one is because this error description is the first time to see, and secondly because I just made a very simple form, which also has four or five input boxes and a file upload control.
Look at its meaning, seems to be related to the safety of the error, so the Internet check, the original, when trying to give type= "file" input box assignment, Firefox will report this error, because considering the security of user data, FileUpload control is designed as read-only, So can not be assigned to it manually, the value inside it must be clicked through the user click the button to generate the path, otherwise, developers or other people can control the page script, you can upload the client's designated files, so that will leave a great security risks.
Now that we know the source of the problem, the solution to the problem is naturally come out, that is, to the fileupload element of the assignment statement can be removed, and in the preservation of the time, if no upload file will overwrite the existing file URL, make a judgment in the back, see whether this value is empty, empty is retained, Non-empty and then cover it.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/tools/