diff --git a/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java b/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java index 41b0734ba..2197be266 100644 --- a/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java +++ b/connectivity/connectivity-demos/src/com/axonivy/connectivity/rest/client/file/FileUpload.java @@ -22,6 +22,7 @@ import org.glassfish.jersey.media.multipart.file.FileDataBodyPart; import ch.ivyteam.ivy.environment.Ivy; +import ch.ivyteam.ivy.persistence.filesystem.EclipseProjectMapper; /** *

@@ -86,7 +87,7 @@ public static File toTempIoFile(IFile resource) throws IOException */ public static IFile getHdResource(String dialogId, String pathToFileInDialog) throws FileNotFoundException { - IProject eclipseProject = Ivy.request().getProject().getProject(); + IProject eclipseProject = EclipseProjectMapper.from(Ivy.request().project()); String dialogPath = dialogId.replace(".", "/"); IFolder dialogDir = eclipseProject.getFolder("src_hd").getFolder(dialogPath);