After struggling for two days, I couldn't resolve the issue of cross-domain AJAX file uploads.
Finally, I discovered that there was a bug in IE related to the enctype attribute of forms...