Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Frank van Rooijen 15 posts 35 karma points
    Oct 28, 2011 @ 14:41
    Frank van Rooijen
    0

    "Requested image path is not allowed." after upgrading ImageGen

    I upgraded imageGen from version 2.2.x to imagegen 2.5.7.x. Nou I recieve the following error: "Requested image path is not allowed." when I try to call an image through imagegen.

    This only happens on items living in my media folder. These files are stored on a NAS. Images stored on my local machine do not give any problems.

    In the documentation I have seen the new feature ImageBaseDir. But this can only be applied on the class. I use these classes for different sources. For example: pleople can register on the site and select an avatar. When uploading thier own avatar this images is stored on the media store (NAS). But they can also choose to use thier facebook avatar. This avatar is located on Facebook. Adding a ImageBaseDir will result in silently adding the NAS location to the facebook avatar.

    Is there any other way to make imagegen accept images form the NAS? This approach worked in version 2.2.x.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Oct 28, 2011 @ 14:51
    Douglas Robar
    100

    Hi, Frank,

    This is a side-effect of the increased security of ImageGen 2.5.x. In prior versions it was possible to request an image almost anywhere on your server. If you're comfortable with that then feel free to continue using 2.2.x. 

    With 2.5.7, the only way to get outside the website's root is to use an ImageBaseDir, which can point to any drive or folder or domain/url. In your case you'd need two different classes with two different ImageBaseDir's and then apply the appropriate class with a macro to distinguish a facebook or NAS file.

    cheers,
    doug. 

Please Sign in or register to post replies

Write your reply to:

Draft