Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

create new image folders


ce7

Recommended Posts

Hi,

Have Select Products Image Folders on CE1070 version.
tried to make new folders , eg: veg2.31/veg2.311/tomatoes-2.jpg

        // Make New subdirectory //
           if ($dir && !is_dir($root_images_dir . $dir)) {
            if (mkdir($root_images_dir . $dir, 0755, true))
                $messageStack->add_session(sprintf(SUCCESS_CREATED_DIRECTORY, $new_dir, $images_dir.$_POST['directory']), 'success');
           }


but it will not make seperate folder veg2.311 and then veg2.311 within veg2.31,
it only create one folder: veg2.31_2.311/tomatoes-2.jpg
image.thumb.png.d8b50a86e5b35e7331d970689f07d3c4.png

how can I fix it? any help or suggetion is appreciated, thanks!
Link to comment
Share on other sites

Have you tried doing it one step at a time, or failing that create the new folder called what you want your new folder to be in the images folder on your server first, and then try creating the sub folder in the ready made folder.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...