If file exists locally use curl_file_create() instead of @filename (which is deprecated)