Moving documents to a new system

markleeds wrote on Wednesday, January 09, 2008:

Does anyone else have this problem?

You move your database and documents to another OpenEMR setup and everything seems to work fine until you try to view your documents.  You realize that the full path to the documents folder is not the same as your old system so your documents cannot be viewed.

I added a few lines of code to /openemr/controllers/C_Document.class.php which hopefully fixes this problem.  It justs changes the fileroot of $url to the current fileroot, just before the document is to be displayed.

Some quick tests here seem to work fine.

sunsetsystems wrote on Wednesday, January 09, 2008:

Hey, thanks.  It *is* pretty silly that the documents table stores the full path to the file.

Rod
www.sunsetsystems.com