Embedded App and File Paths

Hey Luis,

Have you tried an embedded app in 2.5 or 2.5.1? When I try to access files in the webroot from within the embedded app it does not work.

For instance. I have the following setup as my webroot:

C:\wwwroot\myapp

And I have the following setup as my embedd app:

C:\wwwroot\myapp\admin

If I try to access an image in the webroot from within the embedded admin app the image is not displayed. I’m using the following path:

/includes/images/myimage.jpg

This should map to the file located at C:\wwwroot\myapp\includes\images\myimage.jpg but for some reason the image is never served up.

Can you give this a try if you have not already and confirm the problem? I’ve even tried http://#cgi.http_host#/includes/images/myimage.jpg but that did not serve up the image (altough it does give the right URL to where the image is located).

Thanks for looking into this.

Regards,
Aaron

Oh, I should also add my sesBaseURL setting in both apps.

Here is the setting in the app root:
setBaseURL(“http://#cgi.http_host#”)

Here is the setting in the embedded admin app:
setBaseURL(http://#cgi.http_host#/admin)

-Aaron