I am trying to get the file to upload an image or audio file to the following directory
$dir='sites/default/documents/"$patientID"/' but I don't know how to use the exact syntax with the $ sign inside a path.
I used the get method to get the patientID from the controller but still nothing is working