I need to get the full URL of a patient document with the same secured functions used in OpenEMR. what I get is a source code of the image into the iFrame. I need to get a .jpg or .jpeg file to use it as at input file type as a value.
When I try to access the file from URL I get this message :
Forbidden
You don’t have permission to access /openemr/sites/default/documents/xx/xxxxxxxxxx.jpg on this server.
what I need is to access the file from the patient’s document directory, so I can use that image as a file not as an object. The issue is that an external user does not have the right to access the document directory.
what I need is to access the file from the patient’s document directory, so I can use that image as a file not as an object. The issue is that an external user does not have the right to access the document directory.
The issue is that an external user does not have the right to access the document directory.
This is BY design for security reasons. Otherwise any random person could hit the webserver and steal protected health information.
There is no good way to do what you want without major code changes to the security model for documents.