Gravity Forms Change Upload Path and Group Multiple Uploads by Entry_ID as subfolders

I’ve added this to my functions.php file in order to change the file upload location for a specific form:

add_filter("gform_upload_path_58", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id){
   $path_info("path") = $_SERVER('DOCUMENT_ROOT') . '/files/';
   $path_info("url")  = 'https://' . $_SERVER('SERVER_NAME') . '/files/';
   return $path_info;
}

However the forms accepts multiple files for uploading in a single submission, so I want to be able to group the uploads into subfolders named according to the Gravity Forms entry_id. However, I don’t know how to retrieve the entry_id – Simply adding $entry_id into my path as follows didn’t work, and I don’t know how else to retrieve it. I also couldn’t really find anything through Google.

add_filter("gform_upload_path_58", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id){
   $path_info("path") = $_SERVER('DOCUMENT_ROOT') . '/files/' . $entry_id . '/';
   $path_info("url")  = 'https://' . $_SERVER('SERVER_NAME') . '/files/' . $entry_id . '/';
   return $path_info;
}

Any advice would be appreciated.