Create nodes from a JSON file uploaded in a form by an user
Ok I made it works, first I get the file's path using the solution given here
and then once I got the path, I'm reading the file using
$file = file_get_contents($file_path);

then calling my function createActualite($file); and it creates all the nodes up to the content of the JSON as expected.