Using JSON in lowercase as setting.type for AJAX upload didn't work