I must download json document from github, but for moment,I don't know why I have a document with the size = 0 on my cache file. I would know if it's possible before to save the document in the cache to know the size.
Tk
There the portion of code.
$file_link = $content_download_file->download_url;
$file_json_content = file_get_contents($file_link, true, $this->context);
===> possible to know thesize here of $file_json_content ?
file_put_contents($this->saveFileIntoCacheFilesTemp . '/' . $module_name, $file_json_content);