Update : document/file.jpg , files unique for session  - ref BT#8186

$id_curso should be $courseId