Jump to content

Cannot upload images in the CMS - path not allowed


Recommended Posts

I'm trying to upload an image into the CMS using the file uploader. However, every time I try it I get a pop up that says "The folder path is not allowed". I can see that the folder where the images are stored is located at <mysiteroot>/img/cms/

 

I have checked the permissions on the .htaccess file and they are set correctly. Any help in pinpointing why this is happening or where I should look to rectify this is greatly appreciated.

 

Thank you, in advance

Link to comment
Share on other sites

Thanks Fitgura, I changed the file permissions on both the .htaccess file and on the img folder before I posted my initial question, no luck it still says path not allowed. I've also made sure the .htacccess file was regenerated. Do you have any other suggestions?? Thanks

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...
  • 2 months later...
  • 2 weeks later...

Hello

 

Same problem with prestashop 1.4.9.0 , same message "Folder path is not allowed"

I changed files permissions to 777 for folders /upload, /img and /img/cms, this last one beeing default folder.

Nothing changed. And it is not possible to navigate to parent folder, i stay always in default /img/cms.

 

It is possible to directly "insert" picture when typing her correct url in the text area, when known, and when pictures are already uploaded to the folder with ftp soft.

 

There was no such problem in prestashop 1.4.3

 

I will try to compare config parameters in both versions, but it's probable hard work to do this ..

 

Hope some one knows how to do something ..

 

Awfull it is to never find any prestashop version without a lot of bugs

I have quite a lot of with 1.4.9.0 ! ...but up to this date i could manage or go around it

I am afraid to test updating to the new version 1.4.10

 

Please excuse my english, hope you guess what i meaned ..

 

Hope to read your contributions ....

Will come again if something new ...

 

Nyctaclope

Edited by Nyctaclope (see edit history)
Link to comment
Share on other sites

  • 8 months later...

Hi guys,

 

I hope I founded the issues !

 

Please check :

  1. Folder Rights
  2. Folder CHMOD
  3. $_GET['folder'] is not empty

please check your Ajax request using Firebug; I saw the $_GET['folder'] as empty.

 

http://www.monsite.com.com/admin/ajaxfilemanager/ajax_file_upload.php?folder=undefined

DEBUG :
Open the file '\admin\ajaxfilemanager\ajax_file_upload.php' and add after all the $errors definitions a debug tag wich will help you to localize your error.

Eg :

if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_UPLOAD)
{
   $error = SYS_DISABLED;
   $error .= ' - TAG 1 ! ';
}

Chris

Link to comment
Share on other sites

×
×
  • Create New...