Forum

delete attachment
 
Notifications
Retirer tout

delete attachment

2 Posts
2 Utilisateurs
0 Reactions
1,501 Vu
 M
(@mkavurcic)
Posts: 43
Trusted Member
Début du sujet
 
[#8774]

there is a minor issue with removeAttachment, viz. ../files/thumbs don't purge.
would be nice to rectify

here's the code I added in removeAttachment.php after line 50

$subDirectory_thumb=pq_str_replace('${attachmentDirectory}', '../files/thumbs', $obj->subDirectory);
traceLog($subDirectory_thumb); traceLog($obj->fileName);
if (file_exists( $subDirectory_thumb )) {
  array_map( 'unlink', glob($subDirectory_thumb . pq_str_replace('.', '*.', $obj->fileName) ));
  purgeFiles($subDirectory_thumb, null);
  rmdir($subDirectory_thumb);
}

regards


 
Posté : 27/02/2023 12:08 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Thanks for pointing out the issue, and Most of All, thanks for the fixing patch.
We'll include this in next version.


 
Posté : 02/03/2023 11:09 am
Share:
Retour en haut