Ajax FormData submission fails when input[type=file] is empty

Since the recent Safari 11.1 update on macOS and iOS, as well as in Safari Technology Preview 11.2, the

$.ajax
calls in my web application are failing when a
input[type=file]
field has no file chosen (it isn't required in my form). No failure when the field does have a file chosen.
see: https://stackoverflow.com/questions/49614091/safari-11-1-ajax-xhr-form-submission-fails-when-inputtype-file-is-empty

iOS 11.4 beta 6 still has this bug.
Fix it.

Hello,


This issue has been addressed. Can you verify that this issue has been fixed for you in the latest Safari 12 beta on the macOS Mojave and iOS 12 betas?


Thanks for your feedback!


Best wishes,

— Jon Davis

Ajax FormData submission fails when input[type=file] is empty
 
 
Q