Fixed deprecieted warning caused by using @filename rather than the CURLFile class.