In H5, for example, if A picture is uploaded for the first time and then B picture is uploaded, there is no problem. However, if A drag is uploaded first and then A picture is uploaded again, the upload will fail. The solution is summarized as follows:

Plan 1:

After each upload, reset the value of the input

Scheme 2:

After each upload, set the input type property to text and initialize it to File when clicked again