When the file is uploaded, if the drop-down list box or File box is empty, an error will be reported. Here, this problem is solved.
Extract a test of the value in the dropboard:
Here is a specific list box: - Select phone model - option> <% ds = (dataset) Request.getattribute (EnumConstant. MachType); ds.first (); do {%> > <% = ds.getstring ("Mobile_name")%> option> <% } while (ds.next ()); string s;%> select>
Here is a File control:
Finally, it is judge that if it is empty, it does not work: