PHP 5.5 Check. Use CURLFile instead of @filename API

Fixes the following error when using PHP 5.5 or greater

Deprecated: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead.