Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

delete attachment
 
Notifications
Clear all

delete attachment

2 Posts
2 Users
0 Reactions
1,513 Views
 M
(@mkavurcic)
Posts: 43
Active Member
Topic starter
 
[#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


 
Posted : 27 Feb 2023 12H08
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

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


 
Posted : 02 Mar 2023 11H09
Share:

Scroll to Top