Fixed line 491 - now supports CURL File Class - passing $data straight to CURLOP_POSTFIELDS is deprecated.