I am not sure an indexOf check is necessary here, as it will either equal multipart/form-data or will not.