"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.
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.
"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.
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.
is working on a reply...