| 130 | | String typePath = UtilsFile.constructServerSidePath(request, resourceType); |
|---|
| 131 | | String typeDirPath = getServletContext().getRealPath(typePath); |
|---|
| 132 | | |
|---|
| 133 | | File typeDir = new File(typeDirPath); |
|---|
| | 131 | // String typePath = UtilsFile.constructServerSidePath(request, resourceType); |
|---|
| | 132 | // String typePath = "/moduleResources/patientnotes/userfiles/image"; |
|---|
| | 133 | String typePath = "patientnotes/userfiles/image"; |
|---|
| | 134 | // String typeDirPath = getServletContext().getRealPath(typePath); |
|---|
| | 135 | File typeDir = OpenmrsUtil.getDirectoryInApplicationDataDirectory(typePath); |
|---|
| | 136 | // File typeDir = new File(typeDirPath); |
|---|
| 228 | | String typePath = UtilsFile.constructServerSidePath(request, resourceType); |
|---|
| 229 | | String typeDirPath = getServletContext().getRealPath(typePath); |
|---|
| 230 | | |
|---|
| 231 | | File typeDir = new File(typeDirPath); |
|---|
| 232 | | UtilsFile.checkDirAndCreate(typeDir); |
|---|
| | 231 | // String typePath = UtilsFile.constructServerSidePath(request, resourceType); |
|---|
| | 232 | // String typeDirPath = getServletContext().getRealPath(typePath); |
|---|
| | 233 | // |
|---|
| | 234 | // File typeDir = new File(typeDirPath); |
|---|
| | 235 | |
|---|
| | 236 | String typePath = "patientnotes/userfiles/image"; |
|---|
| | 237 | File typeDir = OpenmrsUtil.getDirectoryInApplicationDataDirectory(typePath); |
|---|
| | 238 | |
|---|
| | 239 | UtilsFile.checkDirAndCreate(typeDir); |
|---|