Change upload form the standard POST (not Ajax) due to CORS.