Failed to upload file

unable to upload the file in the second file upload input.

what is the HTML like?
does the second input allow the filetype you are trying to upload?
what errors do you get?
what is the difference in result after trying to upload manually and doing it(trying to do it) through automation?
Are you sure your xpath is actually selecting the correct input?