
Originally Posted by
billy565
Thanks for the speedy reply! Yes, it fixed part of the problem. Now the new med/lrg images have the right permissions.
Any idea how to fix the re-uploading permissions? I looked at <admin>/image_manager_upload.php but it uses a different process.
Thanks again.
In that file, insert after line 70, which reads:
Code:
$messageStack->add_session(IM_REPLACED . ' ' . DIR_FS_CATALOG_IMAGES . $p['dirname'] . '/' . $p['basename'], 'success');
the following line:
Code:
chmod(DIR_FS_CATALOG_IMAGES . $p['dirname'] . '/' . $p['basename'], 0644);
and add after line 91, which reads:
Code:
$messageStack->add_session(IM_ADD_SUCCESS . ' ' . DIR_FS_CATALOG_IMAGES . $p['dirname'] . '/' . $p['filename'] . '_' . $_POST['IMsuffix'] . '.' . $p['extension'], 'success');
the following line:
Code:
chmod(DIR_FS_CATALOG_IMAGES . $p['dirname'] . '/' . $p['filename'] . '_' . $_POST['IMsuffix'] . '.' . $p['extension'], 0644);
They are fixes for both re-upload and add additional images.
Please let me know the results, as I cannot test it here.
Boudewijn
Bookmarks