Access Virtual Directory for Site
Hello,
I have setup a virtual directory for my site and it's specified as {SitePath}\. If I put a file.pdf file on the server in that path and then try to access it via (http://myserver/Geocortex/Essentials/REST/sites/mysite/virtualdirectory/file.pdf) it tells me that it can't find the file. However, if I upload a picture.png file using the REST Manager for a MapService image, I can hit the picture.png file like with this url: http://myserver/Geocortex/Essentials/REST/sites/mysite/virtualdirectory/picture.png. Why can the file.pdf not be accessed?
I am trying to add a file in the virtual directory and link to it in my application. Any ideas on how to do this?
Thanks!
Justin
-
This should be working for you. Although Manager will only allow you to upload 'valid' file types to your virtual directory (images and xml) you can put arbitrary things in it and pull them out via URL. Are you sure you have the correct path?
{SitePath} will expand to the Site directory (the one that the Site.xml lives in), and if you have set this up as your virtual directory that is where the pdf should go. Setting this up does not necessarily create an actual 'VirtualDirectory' folder in your filesystem, unless of course you make one yourself and point the virtual directory at it.
0
Please sign in to leave a comment.
Comments
1 comment