Support new PHP 5.5 Curl Upload files
Thanks to Miguel A. Montañes (blogestudio.com)