View ProjeQtOr On
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - delete attachment - ProjeQtOr

delete attachment

27 Feb 2023 10:08 - 27 Feb 2023 11:45 #1 by mkavurcic
delete attachment was created by mkavurcic
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);

Last edit: 27 Feb 2023 11:45 by mkavurcic. Reason: code add

Please Log in or Create an account to join the conversation.

02 Mar 2023 09:09 #2 by babynus
Replied by babynus on topic delete attachment

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

Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.024 seconds

Cookies settings


Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.


Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.