Hello, I am trying to use add_to_curl_request with a file.
I have the following code:
$ch = curl_init($url);$mainfile->add_to_curl_request($ch,"Key");
var_dump($ch);
And i get:
Warning: Attempt to modify property of non-object in /var/www/html/moodle/lib/filestorage/file_system.php on line 365
Does anyone know why?