• Welcome to KonaKart Community Forum. Please login or sign up.
 

Error by uploading product image

Started by kameraad759, January 20, 2021, 07:51:52 am

Previous topic - Next topic

kameraad759

Hello,

I get the following error, when uploading a product image.

There has been a problem with the upload
Exception Message = Access to file:/E:/myshop/webapps/konakart/images/prod/F/F/2/5/FF252FEA-5071-4812-BFD0-D1AC66606F1D_1_UPLOADED.jpg is not permitted [9.4.0.0]

My DB is named myshop and also the base directory is myshop. The rest is default

What can I do?

Thanks

marco

Hello,

since you changed the default installation path, I think you'll need to fix the relevant web.xml.

For example, for the admin app, you should edit the file:

\webapps\konakartadmin\WEB-INF\web.xml

Changing this code:


...
 <param-name>permittedLocations</param-name>
 <param-value>
 .*/[Kk]ona[Kk]art/data/.*,
 .*/[Kk]ona[Kk]art/digitalDownload/.*,
 .*/[Kk]ona[Kk]art/pdf/.*,
 .*/[Kk]ona[Kk]art/.*/reports/.*/.*rptdesign,
 .*/[Kk]ona[Kk]art/webapps/konakart/images/.*
 </param-value>
 ...

into something like this:

...
 <param-name>permittedLocations</param-name>
 <param-value>
 .*/myshop/webapps/[Kk]ona[Kk]art/data/.*,
 .*/myshop/webapps/[Kk]ona[Kk]art/digitalDownload/.*,
 .*/myshop/webapps/[Kk]ona[Kk]art/pdf/.*,
 .*/myshop/webapps/[Kk]ona[Kk]art/.*/reports/.*/.*rptdesign,
 .*/myshop/webapps/[Kk]ona[Kk]art/webapps/konakart/images/.*
 </param-value>
 ...


Hope this helps.

marco