×
Kunena 5.1.18 Released (30 Jun 2020)

The Kunena team has announce the arrival of Kunena 5.1.18 [K 5.1.18] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

Question When Deleting a Post with attachment, attachment still remains?

More
9 years 3 months ago #1 by Josh
As a test I posted on my forum with a attachment (photo) and then deleted the post. The photo still remains on the server. Obviously I can manually remove it, but it would be nice if this could auto be deleted when deleting the post. But then again I suppose deleting posts with attachments is not that common.
Well here is a example:
www.hikrs.com/media/kunena/attachments/62/P1370669.JPG
The following user(s) said Thank You: Mihanja

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

More
9 years 3 months ago - 9 years 3 months ago #2 by Josh
testing... B)
Edit: Darn, forgot you can't delete your posts on the kunena forum...
Attachments:
Last edit: 9 years 3 months ago by Josh.

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

More
9 years 3 months ago #3 by misterpat
A nice feature to bring up is one in my old forum software. You were able to check for orphaned attachments to avoid this.

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

More
9 years 3 months ago #4 by sozzled

misterpat wrote: A nice feature to bring up is one in my old forum software. You were able to check for orphaned attachments to avoid this.

Was this "old forum" software Kunena ... or something else? Sounds like a good feature. B)

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

More
9 years 2 months ago #5 by misterpat

sozzled wrote: Was this "old forum" software Kunena ... or something else? Sounds like a good feature. B)


It was PHPBB3
The following user(s) said Thank You: Josh

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

More
9 years 2 months ago #6 by cally6008
It would be great to have an easier way of removing orphaned attachments from the server.

I am having to go to the "uploaded images browser", scroll through loads of images, find an orphaned one, delete it, then scroll through the list again etc

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

More
9 years 2 months ago #7 by xillibit
Hello,

To check that the images are right deleted you need to use the delete permanently function or in trash manager by using delete permanently function too

I don't provide support by PM, because this can be useful for someone else.

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

More
8 years 10 months ago #8 by rado
hello there,
in the file
(JOOMLA ROOT)/components/com_kunena/lib/kunena.moderation.class.php

I had to change
// Check that message to be moved actually exists
if ( !is_object($currentMessage) ) {
with
// Check that message to be moved actually exists
if ( !is_object($currentMessage) && $mode!=KN_DEL_ATTACH) {

because messages are removed before of attachments!

this works for me.

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

More
8 years 10 months ago #9 by xillibit
I will take a look at this later

I don't provide support by PM, because this can be useful for someone else.

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

More
8 years 10 months ago #10 by xillibit

rado wrote: hello there,
in the file
(JOOMLA ROOT)/components/com_kunena/lib/kunena.moderation.class.php

I had to change
// Check that message to be moved actually exists
if ( !is_object($currentMessage) ) {
with
// Check that message to be moved actually exists
if ( !is_object($currentMessage) && $mode!=KN_DEL_ATTACH) {

because messages are removed before of attachments!

this works for me.

This doesn't work for me, my fix is different

Line 328 add $this->deleteAttachments($MessageID);

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: Matias

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.134 seconds