Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Question Inserting attachments with duplicated names

More
10 years 6 months ago - 10 years 6 months ago #1 by cybnet
Some users of kunena on my site have reported issues when they try to insert images and I've reproduce the problem when I try to insert different images with the same name and click the button "Insert" before the message has been submited.

For example:

- I write a message and attach the image "jupiter.jpg". Click the "Insert" button and the attachment code is [ attachment=412 ]jupiter.jpg[/attachment]. Click on "Submit". All fine.

- I write a new message and attach the image "jupiter.jpg", it is a new image but with the same file name. Click the "Insert" button and the attachment code is [ attachment=425 ]jupiter.jpg[ / attachment ]. Click on "Submit". I will see the image sent before. The new image is renamed to "jupiter_2013-10-07.jpg" but kunena displays the old image (jupiter.jpg). It seems like kunena displays the image based on the name file inserted by the attachment code and not based on the attachment ID.
Last edit: 10 years 6 months ago by cybnet.

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

More
10 years 6 months ago #2 by sozzled
That is correct. Obviously you cannot have two different images with the same filename. If you want to replace an existing image with an updated image you firstly need to delete the original image and upload a new one. What Kunena does is, when an existing file with the same name is detected, Kunena changes the name of the file to make the name unique.

Does this help?

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

More
10 years 6 months ago #3 by cybnet
The renaming is fine, but the problem is that clicking "Insert" before the message has been sent will insert the old image, not the new and renamed one.

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

More
10 years 6 months ago #4 by sozzled
What would you like to see happen instead? I really don't know if this can be fixed easily.

The facts are:

1) Images uploaded by each user are stored in a separate folder - each user has one folder for all files uploaded by that user. See Filenames are been renamed when uploading jpg images in Firefox and Safari for a short discussion on this subject.

2) Kunena does not check before you press the Submit button if files exist with the same filename as an attachment you are uploading.

3) You can delete an attachment that was uploaded in an earlier post by editing that post and unchecking the box next to file(s) used in those earlier messages. This is not the only way that you can files.

4) Kunena is not a comprehensive image gallery system; the attachment feature is actually quite basic. When I look at images posted on a web-based discussion forum I don't actually take much notice of the filename(s) that people used ... but that's just my personal view.

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

More
10 years 6 months ago - 10 years 6 months ago #5 by cybnet
I think you don't understand what I'm trying to explain. I don't care the filename. The problem is that kunena is inserting the image based on the filename and not based on the attachment ID (or something similar). So, when inserting a image with a filename that was used before (but they are different images) before the message is submitted, the image inserted will be the first image uploaded with that name, I don't care about the filename but I care about the image users see. This happen because:

- Kunena dosen't check the filename before the message is submited.
- Kunena inserts the image based on the filename, not based on attachement ID or similar approach.

This issue is not important for me or for any other advanced user but IT IS from a average user perspective using a forum topic mainly to upaload images in a regular basis.

I think this issue can be fixed easily just by inserting the image based attachment ID and not based on attachment filename. When redere the inserted images, kunena can check the ID of the attachment (it is already in the attachment BBCode), look in the database for the file with that ID. Doing that, I will see what I and any other user of kunena would like to see: the correct image inserted on the post whenever you press the "Insert" button.

For the moment I'm saying to all the uses of my forum who report this issue that they have to give a different filename to different images. This solve the problem but it is quite annoying for me and for the users.
Last edit: 10 years 6 months ago by cybnet.

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

More
10 years 6 months ago #6 by sozzled

cybnet wrote: I think you don't understand what I'm trying to explain. I don't care the filename.

If you do not care about the filename then, perhaps, I do not understand the problem. Let me try to give you a practical example.

Below you will see that I have uploaded and inserted two images (stored with the same filename in different folders on my computer) each of which has the filename "jupiter.jpg". The first image will be stored using this filename; the second image filename will be changed after the image is uploaded. It is quite obvious that there are two different images.

cybnet wrote: The problem is that Kunena is inserting the image based on the filename and not based on the attachment ID (or something similar).

As I tried to explain earlier, that is exactly how Kunena works as far as storing attachments. Attachments in Kunena are not stored in the database. Kunena has no concept of storing attachments based on the "attachment ID". That is not how Kunena works. This is explained in msg #4 of Filenames are been renamed when uploading jpg images in Firefox and Safari .

cybnet wrote: Attachments are stored as separate files.

That is correct.

cybnet wrote: This issue is not important for me or for any other advanced user but IT IS from a average user perspective using a forum topic mainly to upaload images in a regular basis.

That is your opinion and we respect your opinion. However, you if this is important for your users to understand how Kunena works, you might like to refer your users to this topic where we are having this discussion so that they will understand things better.

cybnet wrote: I think this issue can be fixed easily just by inserting the image based attachment ID and not based on attachment filename.

I'm sorry but that is not a trivial change. This requires a major redesign of the way that Kunena works. Furthermore, if such a change were to be made in future, there would have to be included (in any forum upgrade procedure) the means to convert existing files under this new attachment paradigm you've suggest. However, if this change is important to you (or to other members of the Kunena community) you are welcome to suggest it as a "feature request" and we will consider how it might be possible to change things around.

I hope this helps you to understand better.
Attachments:

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

More
10 years 6 months ago - 10 years 6 months ago #7 by cybnet
I feel like you are talking about this issue like non-real problem, a so much minor problem or a problem only for me, even like if it is a ridicolous problem. I'm sorry, but I think that, as moderator of the forum, it is not a good attitude from your side.

This is my opinion, for sure, but I really think that any kunena user would like to insert a image whenever he/she wants, ie before or after a message and its attachemnts have been submited, without having to remember if he/she did upload a file with the same name before.

That was my opinion but the fact is that a kunena user can insert a image and, after submit the message, see a different image that the one he/she wanted to insert. This will make the user feeling bad with the website he is using and feeling bad with the forum software (ie kunena).

Now you now that this problem exists, so you can fix it if you want. But please, don't fix it for me, I don't want you to do it, fix it for the users of kunena.
Last edit: 10 years 6 months ago by cybnet.

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

More
10 years 6 months ago - 10 years 6 months ago #8 by sozzled

cybnet wrote: ... the fact is that a Kunena user can insert a image and, after submit the message, see a different image that the one he/she wanted to insert.

Now I can see how that would be a real problem and this topic makes a lot more sense to me now.

So, let me see if I understand you. A user wants to upload a picture of a car (for example) and, when they press the submit button, a picture of a horse appears instead. Is that a reasonable way to help me understand what you are talking about?

I think it would help us a lot if we understood the environment you are working in. As you see, in the category description above, we do not ask people for their configuration report - I am not asking you for yours - but I'm wondering what peculiar thing is going on at your site. :S

Can we demonstrate the problem here at www.kunena.org ?
Last edit: 10 years 6 months ago by sozzled.

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

More
10 years 6 months ago - 10 years 6 months ago #9 by cybnet
Demostration.

In this message I'm attaching a image of a koala. The filename is Koala.jpg. I click the "Insert" button before submit the message. I need to post a second message to demostrate de problem.

Attachments:
Last edit: 10 years 6 months ago by cybnet.

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

More
10 years 6 months ago - 10 years 6 months ago #10 by cybnet
Now I'm attaching a image of a Jellyfish. The filename is Koala.jpg. I click the "Insert" button before I submit this message. All of us will see the koala instead of the Jellyfish.


...Ohh I can't reproduce the problem here nor in my foum. I think I'm missing some step I followed before....
Last edit: 10 years 6 months ago by cybnet.

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

Time to create page: 0.407 seconds